diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2023-08-30 18:18:10 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@tailscale.com> | 2023-08-31 21:19:09 -0700 |
| commit | 2791107c183204b9a0402eee85417b46c443e5c4 (patch) | |
| tree | 5a923b2319a62df95446aadb89fbcbec50d29761 /control/controlclient/controlclient_test.go | |
| parent | 1f12b3aedc63fb1da07b8f604dd563fd58722dde (diff) | |
| download | tailscale-bradfitz/calc_state.tar.xz tailscale-bradfitz/calc_state.zip | |
control/controlclient: clean up various things in prep for state overhaulbradfitz/calc_state
We want the overall state (used only for tests) to be computed from
the individual states of each component, rather than moving the state
around by hand in dozens of places.
In working towards that, we found a lot of things to clean up.
Co-authored-by: Maisem Ali <maisem@tailscale.com>
Change-Id: I85385be1e63342c560501a004e2dea4b06506a76
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'control/controlclient/controlclient_test.go')
| -rw-r--r-- | control/controlclient/controlclient_test.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/control/controlclient/controlclient_test.go b/control/controlclient/controlclient_test.go index e02b784ef..bb0b598e6 100644 --- a/control/controlclient/controlclient_test.go +++ b/control/controlclient/controlclient_test.go @@ -50,12 +50,7 @@ func TestStatusEqual(t *testing.T) { true, }, { - &Status{state: StateNew}, - &Status{state: StateNew}, - true, - }, - { - &Status{state: StateNew}, + &Status{}, &Status{state: StateAuthenticated}, false, }, |
