@@ -834,19 +834,19 @@ func TestDeleteObjects(t *testing.T) {
834834 }
835835
836836 if response .DeleteResult .DeletedObjects == nil {
837- t .Fatalf ("Expected '%s ' but got 'nil'" , expectedDeleted )
837+ t .Fatalf ("Expected '%v ' but got 'nil'" , expectedDeleted )
838838 }
839839
840840 if ! reflect .DeepEqual (response .DeleteResult .DeletedObjects , expectedDeleted ) {
841- t .Fatalf ("Expected '%s ' but got '%s '" , expectedDeleted , response .DeleteResult .DeletedObjects )
841+ t .Fatalf ("Expected '%v ' but got '%v '" , expectedDeleted , response .DeleteResult .DeletedObjects )
842842 }
843843
844844 if response .DeleteResult .Errors == nil {
845- t .Fatalf ("Expected '%s ' but got 'nil'" , expectedErrors )
845+ t .Fatalf ("Expected '%v ' but got 'nil'" , expectedErrors )
846846 }
847847
848848 if ! reflect .DeepEqual (response .DeleteResult .Errors , expectedErrors ) {
849- t .Fatalf ("Expected '%s ' but got '%s '" , expectedErrors , response .DeleteResult .Errors )
849+ t .Fatalf ("Expected '%v ' but got '%v '" , expectedErrors , response .DeleteResult .Errors )
850850 }
851851}
852852
@@ -1393,7 +1393,7 @@ func TestGetTapesSpectraS3(t *testing.T) {
13931393 ds3Testing .AssertStringPtrIsNil (t , "LastVerified" , tape .LastVerified )
13941394 ds3Testing .AssertNonNilStringPtr (t , "PartitionId" , "4f8a5cbb-9837-41d9-afd1-cebed41f18f7" , tape .PartitionId )
13951395 if tape .PreviousState != nil {
1396- t .Fatalf ("Expected previous state '%d ' but was '%d '." , "nil" , * tape .PreviousState )
1396+ t .Fatalf ("Expected previous state '%s ' but was '%s '." , "nil" , tape .PreviousState . String () )
13971397 }
13981398 ds3Testing .AssertNonNilStringPtr (t , "SerialNumber" , "HP-W130501213" , tape .SerialNumber )
13991399 ds3Testing .AssertString (t , "State" , models .TAPE_STATE_NORMAL .String (), tape .State .String ())
@@ -1459,7 +1459,7 @@ func TestGetTapeSpectraS3(t *testing.T) {
14591459 ds3Testing .AssertStringPtrIsNil (t , "LastVerified" , tape .LastVerified )
14601460 ds3Testing .AssertNonNilStringPtr (t , "PartitionId" , "4f8a5cbb-9837-41d9-afd1-cebed41f18f7" , tape .PartitionId )
14611461 if tape .PreviousState != nil {
1462- t .Fatalf ("Expected previous state '%d ' but was '%d '." , "nil" , * tape .PreviousState )
1462+ t .Fatalf ("Expected previous state '%s ' but was '%s '." , "nil" , tape .PreviousState . String () )
14631463 }
14641464 ds3Testing .AssertNonNilStringPtr (t , "SerialNumber" , "HP-W130501213" , tape .SerialNumber )
14651465 ds3Testing .AssertString (t , "State" , models .TAPE_STATE_NORMAL .String (), tape .State .String ())
0 commit comments