Skip to content

Commit

Permalink
test: ignore incomplete test case
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Aug 24, 2019
1 parent 7eb487b commit de782da
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions src/controller/logs/login/get_test.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
package login_test

import (
"fmt"
"github.com/axetroy/go-server/src/controller"
"github.com/axetroy/go-server/src/controller/auth"
"github.com/axetroy/go-server/src/controller/logs/login"
"github.com/axetroy/go-server/tester"
"testing"
)

func TestGetLoginLog(t *testing.T) {
user, _ := tester.CreateUser()

defer auth.DeleteUserByUserName(user.Username)

r := login.GetLatestLog(&controller.Context{Uid: user.Id})

fmt.Printf("%+v\n", r)
//user, _ := tester.CreateUser()
//
//defer auth.DeleteUserByUserName(user.Username)
//
//r := login.GetLatestLog(&controller.Context{Uid: user.Id})
//
//fmt.Printf("%+v\n", r)
}

0 comments on commit de782da

Please sign in to comment.