try another cookie format, ntg submits ntgauthtoken as cookie

This commit is contained in:
Bel LaPointe
2022-01-27 14:01:13 -07:00
parent ba2156133a
commit 2e9e0c5816
9 changed files with 220 additions and 85 deletions

View File

@@ -3,6 +3,7 @@ package main
import (
"fmt"
"local/truckstop/config"
"os"
"testing"
)
@@ -33,3 +34,10 @@ Content-Type: text/html; charset="UTF-8"
t.Fatal(want, got)
}
}
func TestMain(t *testing.T) {
os.Setenv("CONFIG", "./config.main_test.json")
if err := _main(); err != nil {
t.Fatal(err)
}
}