Skip to content

Commit

Permalink
Code clean up, loglevel debug for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kradalby committed Aug 21, 2021
1 parent d93a7f2 commit c49fe26
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ import (
"inet.af/netaddr"
)

var integrationTmpDir string
var ih Headscale

var pool dockertest.Pool
var network dockertest.Network
var headscale dockertest.Resource
var tailscaleCount int = 50
var tailscales map[string]dockertest.Resource

type IntegrationTestSuite struct {
suite.Suite
stats *suite.SuiteInformation
Expand Down Expand Up @@ -56,15 +65,6 @@ func TestIntegrationTestSuite(t *testing.T) {
}
}

var integrationTmpDir string
var ih Headscale

var pool dockertest.Pool
var network dockertest.Network
var headscale dockertest.Resource
var tailscaleCount int = 25
var tailscales map[string]dockertest.Resource

func executeCommand(resource *dockertest.Resource, cmd []string) (string, error) {
var stdout bytes.Buffer
var stderr bytes.Buffer
Expand Down
2 changes: 1 addition & 1 deletion integration_test/etc/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"db_type": "sqlite3",
"db_path": "/tmp/integration_test_db.sqlite3",
"acl_policy_path": "",
"log_level": "trace"
"log_level": "debug"
}

0 comments on commit c49fe26

Please sign in to comment.