Skip to content
Snippets Groups Projects
Commit d70b205b authored by Jono Wenger's avatar Jono Wenger
Browse files

Fix TestManager_ProcessMessageRetrieval_Quit

parent b68b8966
Branches
Tags
1 merge request!23Release
......@@ -294,14 +294,16 @@ func TestManager_ProcessMessageRetrieval_Quit(t *testing.T) {
messageBundleChan := make(chan message.Bundle)
testManager.messageBundles = messageBundleChan
// Initialize the message retrieval
go testManager.processMessageRetrieval(mockComms, stop)
// Close the process early, before any logic below can be completed
if err := stop.Close(); err != nil {
t.Errorf("Failed to signal close to process: %+v", err)
}
time.Sleep(250 * time.Millisecond)
// Initialize the message retrieval
go testManager.processMessageRetrieval(mockComms, stop)
// Construct expected values for checking
expectedEphID := ephemeral.Id{1, 2, 3, 4, 5, 6, 7, 8}
payloadMsg := []byte(PayloadMessage)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment