aboutsummaryrefslogtreecommitdiff
path: root/config/app_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/app_test.go')
-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")
+ }
}