fix(platform/testing): check ID validity

pull/10616/head
Leonardo Di Donato 2018-09-27 12:51:11 +02:00 committed by Chris Goller
parent 7c932dad56
commit ff46c74d0f
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ func CreateBucket(
if (err != nil) != (tt.wants.err != nil) {
t.Fatalf("expected error '%v' got '%v'", tt.wants.err, err)
}
if tt.wants.err == nil && len(tt.args.bucket.ID) == 0 {
if tt.wants.err == nil && !tt.args.bucket.ID.Valid() {
t.Fatalf("bucket ID not set from CreateBucket")
}