Switch from hacking buildtags to selecting tests

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2022-10-18 14:41:48 +02:00
parent 32c21a05f8
commit c6f82c3646
No known key found for this signature in database
6 changed files with 8 additions and 18 deletions

View file

@ -1,5 +1,3 @@
//go:build integration_derp
package headscale
import (
@ -46,7 +44,7 @@ type IntegrationDERPTestSuite struct {
joinWaitGroup sync.WaitGroup
}
func TestDERPIntegrationTestSuite(t *testing.T) {
func TestIntegrationDERPTestSuite(t *testing.T) {
saveLogs, err := GetEnvBool("HEADSCALE_INTEGRATION_SAVE_LOG")
if err != nil {
saveLogs = false