Skip to content

Commit 6991973

Browse files
phmxburaksezer
authored andcommitted
Compare number of routines before and after test.
1 parent a87437d commit 6991973

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

embedded_client_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,8 @@ func TestEmbeddedClient_DMap_Put_PX_With_NX(t *testing.T) {
642642
}
643643

644644
func TestEmbeddedClient_Issue263(t *testing.T) {
645+
initNumRoutines := runtime.NumGoroutine()
646+
645647
cluster := newTestOlricCluster(t)
646648
db := cluster.addMember(t)
647649

@@ -676,6 +678,8 @@ func TestEmbeddedClient_Issue263(t *testing.T) {
676678

677679
cancel()
678680

681+
assert.Equal(t, initNumRoutines, runtime.NumGoroutine())
682+
679683
runtime.GC()
680684
time.Sleep(time.Second)
681685

0 commit comments

Comments
 (0)