mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-03-19 21:46:14 -04:00

* Run goleak as part of all tests We are already using goleak in various tests. This commit adds a TestMain to all remaining tests and calls goleak.VerifyTestMain in them. * Add goleak to debugd/deploy package and fix bug. * Run go mod tidy * Fix integration tests * Move goleak invocation for mount integration test * Ignore leak in state integration tests Co-authored-by: Fabian Kammel <fk@edgelss.systems>
State
Files and source code for mounting persistent state disks
Testing
Integration test is available in state/test/integration_test.go
.
The integration test requires root privileges since it uses dm-crypt.
Build and run the test:
go test -c ./state/test/
sudo ./test.test