Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
9e1a2adf
Commit
9e1a2adf
authored
Oct 20, 2011
by
Hector Chu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exp/winfsnotify: fix test
R=alex.brainman, mattn.jp CC=golang-dev
https://golang.org/cl/5311047
parent
64306c9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/pkg/exp/winfsnotify/winfsnotify_test.go
src/pkg/exp/winfsnotify/winfsnotify_test.go
+2
-6
No files found.
src/pkg/exp/winfsnotify/winfsnotify_test.go
View file @
9e1a2adf
...
...
@@ -70,15 +70,11 @@ func TestNotifyEvents(t *testing.T) {
if
_
,
err
=
file
.
WriteString
(
"hello, world"
);
err
!=
nil
{
t
.
Fatalf
(
"failed to write to test file: %s"
,
err
)
}
if
err
=
file
.
Sync
();
err
!=
nil
{
t
.
Fatalf
(
"failed to sync test file: %s"
,
err
)
}
expect
(
t
,
watcher
.
Event
,
testFile
,
FS_MODIFY
)
expect
(
t
,
watcher
.
Event
,
testFile
,
FS_MODIFY
)
if
err
=
file
.
Close
();
err
!=
nil
{
t
.
Fatalf
(
"failed to close test file: %s"
,
err
)
}
expect
(
t
,
watcher
.
Event
,
testFile
,
FS_MODIFY
)
expect
(
t
,
watcher
.
Event
,
testFile
,
FS_MODIFY
)
if
err
=
os
.
Rename
(
testFile
,
testFile2
);
err
!=
nil
{
t
.
Fatalf
(
"failed to rename test file: %s"
,
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment