Skip to content

Commit 3a866a5

Browse files
fix tests
1 parent fc73260 commit 3a866a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ldk/go/examples/filesystem-directory/loop/loop_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TestController(t *testing.T) {
2727

2828
FilesystemService: &ldktest.FilesystemService{
2929
Dirf: func(ctx context.Context, dir string) ([]os.FileInfo, error) {
30-
fi := ldk.NewFileInfo("foo.md", 1024, int(os.ModePerm), time.Date(2020, 10, 1, 2, 34, 0, 0, time.UTC), false)
30+
fi := ldk.NewFileInfo("foo.md", int(os.ModePerm), 1024, time.Date(2020, 10, 1, 2, 34, 0, 0, time.UTC), false)
3131

3232
fiArray := []os.FileInfo{&fi}
3333
return fiArray, nil

ldk/go/examples/filesystem-listen-directory/loop/loop_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func TestController(t *testing.T) {
1818
sidekick := &ldktest.Sidekick{
1919
FilesystemService: &ldktest.FilesystemService{
2020
ListenDirf: func(ctx context.Context, dir string, cb ldk.ListenDirHandler) error {
21-
fi := ldk.NewFileInfo("foo.md", 1024, int(os.ModePerm), time.Date(2020, 10, 1, 2, 34, 0, 0, time.UTC), false)
21+
fi := ldk.NewFileInfo("foo.md", int(os.ModePerm), 1024, time.Date(2020, 10, 1, 2, 34, 0, 0, time.UTC), false)
2222
cb(ldk.FileEvent{Info: &fi, Action: ldk.FileActionCreate}, nil)
2323
return nil
2424
},

0 commit comments

Comments
 (0)