aboutsummaryrefslogtreecommitdiff
path: root/config/app_test.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-01-12 16:32:20 +0100
committerJulien Dessaux2021-01-12 16:32:20 +0100
commit3a977a74499b45e91364d0f704a7a7ee48a5351f (patch)
tree530294926d2834db0e62ab07a6620f3c4e9b1e25 /config/app_test.go
parentWrote a minimal config and refactored all tests from it to simplify everything (diff)
downloadshell-game-launcher-3a977a74499b45e91364d0f704a7a7ee48a5351f.tar.gz
shell-game-launcher-3a977a74499b45e91364d0f704a7a7ee48a5351f.tar.bz2
shell-game-launcher-3a977a74499b45e91364d0f704a7a7ee48a5351f.zip
Improved config App tests
Diffstat (limited to '')
-rw-r--r--config/app_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/app_test.go b/config/app_test.go
index 22fb891..cda891d 100644
--- a/config/app_test.go
+++ b/config/app_test.go
@@ -56,4 +56,15 @@ func TestAppvalidate(t *testing.T) {
}
//PostLoginCommands is tested from command.go
+
+ // A valid App
+ app = App{
+ WorkingDirectory: "var/",
+ MaxUsers: 512,
+ MaxNickLen: 15,
+ MenuMaxIdleTime: 60,
+ }
+ if err := app.validate(); err != nil {
+ t.Fatal("A valid app should pass")
+ }
}