Skip to content

Commit 245de56

Browse files
committed
update TestCode
1 parent 4767ff9 commit 245de56

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

plugin_test.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"fmt"
55
"github.com/devfeel/dotweb/test"
66
"testing"
7-
"time"
87
)
98

109
type testPlugin struct {
@@ -36,15 +35,3 @@ func TestNotifyPlugin_IsValidate(t *testing.T) {
3635
needShow := true
3736
test.Equal(t, needShow, p.IsValidate())
3837
}
39-
40-
func TestNotifyPlugin_Run(t *testing.T) {
41-
app := newConfigDotWeb()
42-
p := NewDefaultNotifyPlugin(app)
43-
go func() {
44-
for {
45-
fmt.Println(p.ModTimes[app.Config.ConfigFilePath])
46-
time.Sleep(time.Duration(600 * time.Millisecond))
47-
}
48-
}()
49-
p.Run()
50-
}

0 commit comments

Comments
 (0)