summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client_test.go6
-rw-r--r--cmd/cli/main.go1
2 files changed, 7 insertions, 0 deletions
diff --git a/client_test.go b/client_test.go
index 74e951b..1c7211f 100644
--- a/client_test.go
+++ b/client_test.go
@@ -75,6 +75,7 @@ func Test_server(t *testing.T) {
registerErr := state.Register(
"org.eduvpn.app.linux",
"configstest",
+ "en",
func(old FSMStateID, new FSMStateID, data interface{}) {
stateCallback(t, old, new, data, state)
},
@@ -102,6 +103,7 @@ func test_connect_oauth_parameter(
registerErr := state.Register(
"org.eduvpn.app.linux",
configDirectory,
+ "en",
func(oldState FSMStateID, newState FSMStateID, data interface{}) {
if newState == STATE_OAUTH_STARTED {
baseURL := "http://127.0.0.1:8000/callback"
@@ -185,6 +187,7 @@ func Test_token_expired(t *testing.T) {
registerErr := state.Register(
"org.eduvpn.app.linux",
"configsexpired",
+ "en",
func(old FSMStateID, new FSMStateID, data interface{}) {
stateCallback(t, old, new, data, state)
},
@@ -239,6 +242,7 @@ func Test_token_invalid(t *testing.T) {
registerErr := state.Register(
"org.eduvpn.app.linux",
"configsinvalid",
+ "en",
func(old FSMStateID, new FSMStateID, data interface{}) {
stateCallback(t, old, new, data, state)
},
@@ -290,6 +294,7 @@ func Test_invalid_profile_corrected(t *testing.T) {
registerErr := state.Register(
"org.eduvpn.app.linux",
"configscancelprofile",
+ "en",
func(old FSMStateID, new FSMStateID, data interface{}) {
stateCallback(t, old, new, data, state)
},
@@ -341,6 +346,7 @@ func Test_prefer_tcp(t *testing.T) {
registerErr := state.Register(
"org.eduvpn.app.linux",
"configsprefertcp",
+ "en",
func(old FSMStateID, new FSMStateID, data interface{}) {
stateCallback(t, old, new, data, state)
},
diff --git a/cmd/cli/main.go b/cmd/cli/main.go
index b221c71..14ab6ea 100644
--- a/cmd/cli/main.go
+++ b/cmd/cli/main.go
@@ -111,6 +111,7 @@ func printConfig(url string, serverType ServerTypes) {
registerErr := state.Register(
"org.eduvpn.app.linux",
"configs",
+ "en",
func(old eduvpn.FSMStateID, new eduvpn.FSMStateID, data interface{}) {
stateCallback(state, old, new, data)
},