Skip to content

Commit

Permalink
Merge pull request #140 from dongxuny/main
Browse files Browse the repository at this point in the history
Remove redundent unit test
  • Loading branch information
dongxuny authored Jan 18, 2023
2 parents 4e2f676 + a7954e8 commit b53157f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions boot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"context"
"embed"
"encoding/json"
"fmt"
"github.com/rookie-ninja/rk-entry/v2/entry"
"github.com/stretchr/testify/assert"
"syscall"
Expand Down Expand Up @@ -68,14 +69,9 @@ func TestNewBoot_WithEmbedCase(t *testing.T) {
rkentry.GlobalAppCtx.RemoveEntry(rkentry.GlobalAppCtx.GetEntry("myEntry", "ut"))
}

func TestNewBoot_EmptyConfig(t *testing.T) {
defer assertPanic(t)

NewBoot()
}

func assertPanic(t *testing.T) {
if r := recover(); r != nil {
fmt.Println("adsfadfafd")
// Expect panic to be called with non nil error
assert.True(t, true)
} else {
Expand Down

0 comments on commit b53157f

Please sign in to comment.