Skip to content

Commit

Permalink
FIX: not enough time for delete meta make effect
Browse files Browse the repository at this point in the history
  • Loading branch information
李广博 committed Sep 15, 2020
1 parent 2d476a2 commit c486aa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion push/meta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func TestMetaManager_Delete(t *testing.T) {
t.Fatalf("expect metaManager get from remote meta equel nil")
}
// wait for meta update and pusher stop
time.Sleep(6 * time.Second)
time.Sleep(10 * time.Second)
meta = _manager.MetaManager.Get("default", "test-ns", "test-queue-delete")
if meta != nil {
t.Fatalf("expect metaManager get return nil")
Expand Down
2 changes: 1 addition & 1 deletion server/handlers/pusher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TestDeleteQueuePusher(t *testing.T) {
t.Logf(resp.Body.String())
t.Fatal("Failed to list namespace pusher")
}
time.Sleep(7 * time.Second)
time.Sleep(10 * time.Second)
meta := push.GetManager().Get("default", "ns-pusher", "queue-pusher")
if meta != nil {
t.Fatal("Mismatch meta in delete queue pusher")
Expand Down

0 comments on commit c486aa1

Please sign in to comment.