diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2017-06-04 14:28:17 -0400 |
---|---|---|
committer | Ethan Koenig <ethantkoenig@gmail.com> | 2017-06-04 14:28:17 -0400 |
commit | 9f9289fc68a0f8d6f23e06e8b41b54dc357fb5ce (patch) | |
tree | f96613c2c5ecea39238635a796b76bd01a1f21a9 /models/main_test.go | |
parent | e7ae13deefc3f3936793eded8551d314850f4c19 (diff) | |
download | gitea-9f9289fc68a0f8d6f23e06e8b41b54dc357fb5ce.tar.gz gitea-9f9289fc68a0f8d6f23e06e8b41b54dc357fb5ce.zip |
Run unused test
Diffstat (limited to 'models/main_test.go')
-rw-r--r-- | models/main_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/models/main_test.go b/models/main_test.go index 304bbccaa9..af1f7b6004 100644 --- a/models/main_test.go +++ b/models/main_test.go @@ -7,8 +7,16 @@ import ( "testing" "code.gitea.io/gitea/modules/setting" + + "github.com/stretchr/testify/assert" ) +// TestFixturesAreConsistent assert that test fixtures are consistent +func TestFixturesAreConsistent(t *testing.T) { + assert.NoError(t, PrepareTestDatabase()) + CheckConsistencyForAll(t) +} + func TestMain(m *testing.M) { if err := CreateTestEngine(); err != nil { fmt.Printf("Error creating test engine: %v\n", err) |