forked from TrueCloudLab/frostfs-node
[#311] ir: Fix data race in unit tests
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
872fe90c40
commit
2f6757c828
2 changed files with 5 additions and 4 deletions
|
@ -254,7 +254,9 @@ func TestHandleUnbind(t *testing.T) {
|
|||
|
||||
proc.handleBind(evBind)
|
||||
|
||||
time.Sleep(time.Second)
|
||||
for proc.pool.Running() > 0 {
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
}
|
||||
|
||||
require.EqualValues(t, []frostfsid.CommonBindPrm{expBind}, id.remove, "invalid remove keys value")
|
||||
require.EqualValues(t, []frostfsid.CommonBindPrm{expBind}, id.add, "invalid add keys value")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue