Fix cicd testing issue (#197)

* sync module

* cache per test os

* different port for tests

* wireguard packages versions
This commit is contained in:
Maycon Santos
2022-01-17 14:10:18 +00:00
committed by GitHub
parent 64f2d295a8
commit 0f7ab4354b
5 changed files with 39 additions and 33 deletions

View File

@@ -84,8 +84,8 @@ func Test_SyncProtocol(t *testing.T) {
defer func() {
os.Remove(filepath.Join(dir, "store.json")) //nolint
}()
mgmtServer, err := startManagement(33071, &Config{
mport := 33091
mgmtServer, err := startManagement(mport, &Config{
Stuns: []*Host{{
Proto: "udp",
URI: "stun:stun.wiretrustee.com:3468",
@@ -112,7 +112,7 @@ func Test_SyncProtocol(t *testing.T) {
}
defer mgmtServer.Stop()
client, clientConn, err := createRawClient("localhost:33071")
client, clientConn, err := createRawClient(fmt.Sprintf("localhost:%d", mport))
if err != nil {
t.Fatal(err)
return