From e5a1f842e57967fe606b31a5270a954875b7d7e6 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 26 Jul 2021 10:44:51 -0400 Subject: [PATCH] rbd: naming conventions: fixes in test function TestOpenImage Fix up variable names that don't meet Go standards. Signed-off-by: John Mulligan --- rbd/rbd_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rbd/rbd_test.go b/rbd/rbd_test.go index 94ec128..6621637 100644 --- a/rbd/rbd_test.go +++ b/rbd/rbd_test.go @@ -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)