mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-23 23:29:08 +02:00
[client] Name the force-reset test for the behavior it proves
The silence after ResetMode follows from the undecided mode alone, and the closing SetVersion overwrites forceUpdate from its argument, so the test cannot observe whether the flag itself was cleared. Name it for the stale directive staying silent, which is what it asserts.
This commit is contained in:
@@ -116,7 +116,7 @@ func Test_SetDownloadOnly_ClearsPendingVersion(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func Test_ResetMode_DropsForceUpdate(t *testing.T) {
|
||||
func Test_ResetMode_SilencesStaleForceDirective(t *testing.T) {
|
||||
tmpFile := path.Join(t.TempDir(), "update-test-force-reset.json")
|
||||
recorder := peer.NewRecorder("")
|
||||
sub := recorder.SubscribeToEvents()
|
||||
|
||||
Reference in New Issue
Block a user