Skip to content

Commit 4767ff9

Browse files
committed
update TestCode
1 parent cd321cf commit 4767ff9

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

dotweb_test.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func Test_RunMode_2(t *testing.T) {
2929
}
3030
}
3131

32-
//测试IsDevelopmentMode函数
32+
// 测试IsDevelopmentMode函数
3333
func Test_IsDevelopmentMode_1(t *testing.T) {
3434
app := New()
3535
app.Config.App.RunMode = "development"
@@ -45,14 +45,6 @@ func Test_IsDevelopmentMode_2(t *testing.T) {
4545
t.Log("Run IsDevelopmentMode :", b)
4646
}
4747

48-
func TestDotWeb_UsePlugin(t *testing.T) {
49-
app := newConfigDotWeb()
50-
app.UsePlugin(new(testPlugin))
51-
app.UsePlugin(NewDefaultNotifyPlugin(app))
52-
fmt.Println(app.pluginMap)
53-
app.StartServer(8081)
54-
}
55-
5648
func newConfigDotWeb() *DotWeb {
5749
app := New()
5850
appConfig, err := config.InitConfig("config/testdata/dotweb.conf", "xml")

0 commit comments

Comments
 (0)