Skip to content

Commit c99a61c

Browse files
committed
tests: call Disable only once
1 parent d91f53c commit c99a61c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/state_test_util.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,5 +489,6 @@ func (st *StateTestState) Close() {
489489
// Need to call Disable here to quit the snapshot generator goroutine.
490490
st.Snapshots.Disable()
491491
st.Snapshots.Release()
492+
st.Snapshots = nil
492493
}
493494
}

0 commit comments

Comments
 (0)