Skip to content

Commit

Permalink
修改单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jun 11, 2024
1 parent 745183e commit 88a5de7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
32 changes: 0 additions & 32 deletions test/flog_file_test.go

This file was deleted.

5 changes: 1 addition & 4 deletions test/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ package test

import (
"fmt"
"github.com/farseer-go/fs/container"
"github.com/farseer-go/fs/trace"
"github.com/farseer-go/fs/trace/eumCallType"
"github.com/stretchr/testify/assert"
"testing"
)

func TestTrace(t *testing.T) {
// fs.Initialize[modules.FarseerKernelModule]("unit test")

assert.Equal(t, "Grpc", eumCallType.Grpc.ToString())
assert.Equal(t, "Http", eumCallType.Http.ToString())
assert.Equal(t, "Database", eumCallType.Database.ToString())
Expand All @@ -30,7 +27,7 @@ func TestTrace(t *testing.T) {
testErr(baseTraceDetail)

// EmptyManager
iManager := container.Resolve[trace.IManager]()
iManager := trace.EmptyManager{}
iManager.EntryWebApi("", "", "", "", nil, "", "")
iManager.EntryFSchedule("", 0, nil)
iManager.EntryTaskGroup("", "", 0)
Expand Down

0 comments on commit 88a5de7

Please sign in to comment.