rbd: naming conventions: fixes in test function TestOpenImage

Fix up variable names that don't meet Go standards.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-07-26 10:44:51 -04:00 committed by mergify[bot]
parent ee3c7f3a80
commit e5a1f842e5

View File

@ -1422,8 +1422,8 @@ func TestOpenImage(t *testing.T) {
oImage, err = OpenImageReadOnly(ioctx, name, NoSnapshot)
assert.NoError(t, err)
bytes_in := []byte("input data")
_, err = oImage.Write(bytes_in)
bytesIn := []byte("input data")
_, err = oImage.Write(bytesIn)
// writing should fail in read-only mode
assert.Error(t, err)