|
|
@ -135,7 +135,7 @@ func TestTKAEnablementFlow(t *testing.T) {
|
|
|
|
err = b.tkaSyncIfNeeded(&netmap.NetworkMap{
|
|
|
|
err = b.tkaSyncIfNeeded(&netmap.NetworkMap{
|
|
|
|
TKAEnabled: true,
|
|
|
|
TKAEnabled: true,
|
|
|
|
TKAHead: a1.Head(),
|
|
|
|
TKAHead: a1.Head(),
|
|
|
|
})
|
|
|
|
}, pm.CurrentPrefs())
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
t.Errorf("tkaSyncIfNeededLocked() failed: %v", err)
|
|
|
|
t.Errorf("tkaSyncIfNeededLocked() failed: %v", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -237,7 +237,7 @@ func TestTKADisablementFlow(t *testing.T) {
|
|
|
|
err = b.tkaSyncIfNeeded(&netmap.NetworkMap{
|
|
|
|
err = b.tkaSyncIfNeeded(&netmap.NetworkMap{
|
|
|
|
TKAEnabled: false,
|
|
|
|
TKAEnabled: false,
|
|
|
|
TKAHead: authority.Head(),
|
|
|
|
TKAHead: authority.Head(),
|
|
|
|
})
|
|
|
|
}, pm.CurrentPrefs())
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
t.Errorf("tkaSyncIfNeededLocked() failed: %v", err)
|
|
|
|
t.Errorf("tkaSyncIfNeededLocked() failed: %v", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -250,7 +250,7 @@ func TestTKADisablementFlow(t *testing.T) {
|
|
|
|
err = b.tkaSyncIfNeeded(&netmap.NetworkMap{
|
|
|
|
err = b.tkaSyncIfNeeded(&netmap.NetworkMap{
|
|
|
|
TKAEnabled: false,
|
|
|
|
TKAEnabled: false,
|
|
|
|
TKAHead: authority.Head(),
|
|
|
|
TKAHead: authority.Head(),
|
|
|
|
})
|
|
|
|
}, pm.CurrentPrefs())
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
t.Errorf("tkaSyncIfNeededLocked() failed: %v", err)
|
|
|
|
t.Errorf("tkaSyncIfNeededLocked() failed: %v", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -485,7 +485,7 @@ func TestTKASync(t *testing.T) {
|
|
|
|
err = b.tkaSyncIfNeeded(&netmap.NetworkMap{
|
|
|
|
err = b.tkaSyncIfNeeded(&netmap.NetworkMap{
|
|
|
|
TKAEnabled: true,
|
|
|
|
TKAEnabled: true,
|
|
|
|
TKAHead: controlAuthority.Head(),
|
|
|
|
TKAHead: controlAuthority.Head(),
|
|
|
|
})
|
|
|
|
}, pm.CurrentPrefs())
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
t.Errorf("tkaSyncIfNeededLocked() failed: %v", err)
|
|
|
|
t.Errorf("tkaSyncIfNeededLocked() failed: %v", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|