Skip to content

Commit

Permalink
revert check for completed migration
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Jul 10, 2022
1 parent 79442fc commit eedfd3b
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions test/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,12 @@ func TestMigrate(t *testing.T) {
if err != nil {
t.Errorf("unable to unmarshal received data '%s', error %v", string(data), err)
}
// NOTE: revisit how to check status of processed request since it will require
// migration service and it should take time. Therefore, so far the code below
// is commented out.
// log.Println("Received data", string(data))
// for _, rec := range reportRecords {
// if rec.Status != "COMPLETED" {
// t.Errorf("invalid status in %+v, expected COMPLETED", rec)
// }
// }
log.Println("Received data", string(data))
for _, rec := range reportRecords {
if rec.Status != "COMPLETED" {
t.Fatalf("invalid status in %+v, expected COMPLETED", rec)
}
}
}

// TestMigrateRemove tests remove migration APIs
Expand Down

0 comments on commit eedfd3b

Please sign in to comment.