Skip to content
Snippets Groups Projects
Commit 5e4ffffc authored by Josh Brooks's avatar Josh Brooks
Browse files

Fix race condition in test

parent b6e1fe3f
Branches
Tags
No related merge requests found
......@@ -50,10 +50,6 @@ func TestCheck_Thread(t *testing.T) {
stop := stoppable.NewSingle(ephemeralStoppable)
identityStore := NewTracker(session.Reception())
err := stop.Close(2 * time.Second)
if err != nil {
t.Errorf("Could not close thread: %v", err)
}
/// Store a mock initial timestamp the store
now := time.Now()
......@@ -88,4 +84,10 @@ func TestCheck_Thread(t *testing.T) {
t.Errorf("Store was not updated for newly generated identies")
}
err = stop.Close(3 * time.Second)
if err != nil {
t.Errorf("Could not close thread: %v", err)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment