diff options
Diffstat (limited to 'objectstore/memory_backend_test.go')
| -rw-r--r-- | objectstore/memory_backend_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/objectstore/memory_backend_test.go b/objectstore/memory_backend_test.go index 3fbe7a5..c50d97f 100644 --- a/objectstore/memory_backend_test.go +++ b/objectstore/memory_backend_test.go @@ -15,7 +15,7 @@ func TestCreateAndGet(t *testing.T) { // Create the object bucketId := "foo" objectId := "bar" - objectContent := "Lorem ipsum" + objectContent := []byte("Lorem ipsum") objects.CreateObject(bucketId, objectId, objectContent) // Retrieve the object @@ -25,7 +25,7 @@ func TestCreateAndGet(t *testing.T) { } // Check the object content - if object != objectContent { + if object != string(objectContent) { t.Errorf("Check test object. Got (%v), want (%v)", object, objectContent) } @@ -42,7 +42,7 @@ func TestCreateAndDelete(t *testing.T) { // Create the object bucketId := "foo" objectId := "bar" - objectContent := "Lorem ipsum" + objectContent := []byte("Lorem ipsum") objects.CreateObject(bucketId, objectId, objectContent) // Try to delete a non-existent object @@ -77,7 +77,7 @@ func TestDuplicatesDetection(t *testing.T) { // Create an object bucketId := "foo" objectId := "bar" - objectContent := "Lorem ipsum" + objectContent := []byte("Lorem ipsum") objects.CreateObject(bucketId, objectId, objectContent) // Error type reference |
