mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
Fix race condition in TestService_Initialized (#8597)
This commit is contained in:
parent
286444a2ec
commit
fa2084330b
@ -443,7 +443,9 @@ func TestService_Resync(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestService_Initialized(t *testing.T) {
|
||||
s := NewService(context.Background(), &Config{})
|
||||
s := NewService(context.Background(), &Config{
|
||||
StateNotifier: &mock.MockStateNotifier{},
|
||||
})
|
||||
s.chainStarted.Set()
|
||||
assert.Equal(t, true, s.Initialized())
|
||||
s.chainStarted.UnSet()
|
||||
|
Loading…
Reference in New Issue
Block a user