mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 21:08:10 -05:00
Fix race condition in TestService_Initialized (#8597)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user