Skip to content

Commit

Permalink
Merge branch 'master' into feature/test
Browse files Browse the repository at this point in the history
  • Loading branch information
askuy authored May 21, 2024
2 parents 158cf65 + fac9b31 commit 7479db4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions core/transport/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ func TestValue(t *testing.T) {
assert.Equal(t, "hello", val)
}


//func Test_newContextKey(t *testing.T) {
// key := newContextKey("hello")
// assert.Equal(t, "ego context value hello", key.String())
//}

func TestWithValue(t *testing.T) {
Set([]string{"X-EGO-Test"})
ctx := context.Background()
Expand Down
3 changes: 1 addition & 2 deletions server/egin/interceptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ import (
"testing"

"github.com/gin-gonic/gin"
"github.com/gotomicro/ego/core/transport"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/stretchr/testify/assert"

"github.com/gotomicro/ego/core/transport"

"github.com/gotomicro/ego/core/elog"
)

Expand Down

0 comments on commit 7479db4

Please sign in to comment.