mirror of
https://github.com/status-im/consul.git
synced 2025-02-24 19:38:19 +00:00
Reset root prune interval after TestLeader_CARootPruning completes
#10645 Co-authored-by: Daniel Nephin <dnephin@hashicorp.com>
This commit is contained in:
parent
91c90a672a
commit
ff9700b068
@ -1177,7 +1177,12 @@ func TestLeader_CARootPruning(t *testing.T) {
|
||||
}
|
||||
|
||||
// Can not use t.Parallel(), because this modifies a global.
|
||||
origPruneInterval := caRootPruneInterval
|
||||
caRootPruneInterval = 200 * time.Millisecond
|
||||
t.Cleanup(func() {
|
||||
// Reset the value of the global prune interval so that it doesn't affect other tests
|
||||
caRootPruneInterval = origPruneInterval
|
||||
})
|
||||
|
||||
require := require.New(t)
|
||||
dir1, s1 := testServer(t)
|
||||
|
Loading…
x
Reference in New Issue
Block a user