You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/tsconsensus
Ramesh 9e892f11e4 tsconsensus: add unit tests for helper functions
Adds non-integration unit tests to address issue #18022.

The existing tests are integration tests that spin up full
tsnet.Server instances and occasionally timeout in CI. These
new unit tests are fast (<10ms) and test isolated functions:

- readAllMaxBytes: tests size limiting behavior
- commandClient.url: tests URL construction
- addrFromServerAddress: tests address parsing
- raftAddr: tests raft address formatting

These tests provide baseline coverage to prevent bitrot when
integration tests fail to run.

Fixes #18022

Signed-off-by: Ramesh <adhikari.resume@gmail.com>
3 weeks ago
..
authorization.go tsconsensus: protect from data race 7 months ago
authorization_test.go tsconsensus: add a tsconsensus package 9 months ago
bolt_store.go tsconsensus: enable writing state to disk 8 months ago
bolt_store_no_bolt.go tsconsensus: enable writing state to disk 8 months ago
http.go tsconsensus: add a tsconsensus package 9 months ago
http_test.go tsconsensus: add unit tests for helper functions 3 weeks ago
monitor.go all: rename variables with lowercase-l/uppercase-I 2 months ago
tsconsensus.go cmd/natc,tsconsensus: add cluster config admin 5 months ago
tsconsensus_test.go tsconsensus: add unit tests for helper functions 3 weeks ago