@@ -140,9 +140,9 @@ func TestServer(t *testing.T) {
140
140
app .Config .UsernameIsEmail = true
141
141
142
142
// run against a real database if the test isn't run with -test.short flag
143
- // if !testing.Short() {
144
- // app = setup(t, logger)
145
- // }
143
+ if ! testing .Short () {
144
+ app = setup (t , logger )
145
+ }
146
146
147
147
// start a fake oauth provider
148
148
providerServer := httptest .NewServer (test .ProviderApp ())
@@ -611,7 +611,8 @@ func TestServer(t *testing.T) {
611
611
assert .NotEmpty (t , res )
612
612
})
613
613
})
614
- t .Run ("testRESTInterface" , testRESTInterface )
614
+ t .Run ("Test REST Interface" , testRESTInterface )
615
+ t .Run ("Test gRPC Interface" , testGRPCInterface )
615
616
}
616
617
617
618
func testRESTInterface (t * testing.T ) {
@@ -637,9 +638,9 @@ func testRESTInterface(t *testing.T) {
637
638
testApp .Config .ServerPort = 9191
638
639
639
640
// run against a real database if the test isn't run with -test.short flag
640
- // if !testing.Short() {
641
- // testApp = setup(t, logger)
642
- // }
641
+ if ! testing .Short () {
642
+ testApp = setup (t , logger )
643
+ }
643
644
644
645
// parent context for servers
645
646
ctx := context .Background ()
@@ -1482,7 +1483,7 @@ func testPublicRESTInterface(testApp *app.App, client *route.Client) func(*testi
1482
1483
}
1483
1484
}
1484
1485
1485
- func TestGRPCInterface (t * testing.T ) {
1486
+ func testGRPCInterface (t * testing.T ) {
1486
1487
// Default logger
1487
1488
logger := logrus .New ()
1488
1489
logger .Formatter = & logrus.JSONFormatter {}
@@ -1505,9 +1506,9 @@ func TestGRPCInterface(t *testing.T) {
1505
1506
testApp .Config .ServerPort = 9292
1506
1507
1507
1508
// run against a real database if the test isn't run with -test.short flag
1508
- // if !testing.Short() {
1509
- // testApp = setup(t, logger)
1510
- // }
1509
+ if ! testing .Short () {
1510
+ testApp = setup (t , logger )
1511
+ }
1511
1512
1512
1513
// We still want the username to be an email for testing purposes
1513
1514
testApp .Config .UsernameIsEmail = true
0 commit comments