Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
test: delete the tests which need rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
jkskj committed Aug 25, 2023
1 parent 27593cf commit 9de5594
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 6 additions & 6 deletions test/interaction/comment_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ func benchmarkCommentAction(b *testing.B) {
if resp == nil {
continue
}
//commentId = resp.Id
//
//_, err := interactionService.DeleteComment(req, userId)
//if err != nil {
// b.Error(err)
//}
commentId = resp.Id

_, err := interactionService.DeleteComment(req, userId)
if err != nil {
b.Error(err)
}
}
}
3 changes: 0 additions & 3 deletions test/interaction/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"context"
"testing"

"github.com/ozline/tiktok/cmd/interaction/rpc"

"github.com/ozline/tiktok/cmd/interaction/dal"
"github.com/ozline/tiktok/cmd/interaction/service"
"github.com/ozline/tiktok/config"
Expand All @@ -25,7 +23,6 @@ var (
func TestMain(m *testing.M) {
config.InitForTest()
dal.Init()
rpc.Init()
interactionService = service.NewInteractionService(context.Background())

userId = 10000
Expand Down

0 comments on commit 9de5594

Please sign in to comment.