summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@tailscale.com>2021-04-29 23:18:50 -0400
committerAvery Pennarun <apenwarr@tailscale.com>2021-04-30 00:09:35 -0400
commitb7e31ab1a4036dea54b5c8f61b72adbfac9dc3ea (patch)
tree8ad16106c543fc28c5b50f945eb5039c31c884b7 /scripts
parentb4d04a065fd384ca7f57891a2bb87e1ff5205fb6 (diff)
downloadtailscale-apenwarr/statetest.tar.xz
tailscale-apenwarr/statetest.zip
ipn: mock controlclient.Client; big ipn.Backend state machine test.apenwarr/statetest
A very long unit test that verifies the way the controlclient and ipn.Backend interact. This is a giant sequential test of the state machine. The test passes, but only because it's asserting all the wrong behaviour. I marked all the behaviour I think is wrong with BUG comments, and several additional test opportunities with TODO. Note: the new test supercedes TestStartsInNeedsLoginState, which was checking for incorrect behaviour (although the new test still checks for the same incorrect behaviour) and assumed .Start() would converge before returning, which it happens to do, but only for this very specific case, for the current implementation. You're supposed to wait for the notifications. Updates: tailscale/corp#1660 Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions