Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
448abb61
Commit
448abb61
authored
Nov 16, 2017
by
Anton Evangelatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts/keystore: change modtime for test cases to be bigger than 1sec.
parent
5aa3eac2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
account_cache_test.go
accounts/keystore/account_cache_test.go
+8
-1
No files found.
accounts/keystore/account_cache_test.go
View file @
448abb61
...
...
@@ -59,7 +59,7 @@ func TestWatchNewFile(t *testing.T) {
// Ensure the watcher is started before adding any files.
ks
.
Accounts
()
time
.
Sleep
(
2
00
*
time
.
Millisecond
)
time
.
Sleep
(
10
00
*
time
.
Millisecond
)
// Move in the files.
wantAccounts
:=
make
([]
accounts
.
Account
,
len
(
cachetestAccounts
))
...
...
@@ -349,6 +349,8 @@ func TestUpdatedKeyfileContents(t *testing.T) {
return
}
time
.
Sleep
(
1000
*
time
.
Millisecond
)
// Now replace file contents
if
err
:=
forceCopyFile
(
file
,
cachetestAccounts
[
1
]
.
URL
.
Path
);
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
@@ -362,6 +364,8 @@ func TestUpdatedKeyfileContents(t *testing.T) {
return
}
time
.
Sleep
(
1000
*
time
.
Millisecond
)
// Now replace file contents again
if
err
:=
forceCopyFile
(
file
,
cachetestAccounts
[
2
]
.
URL
.
Path
);
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
@@ -374,6 +378,9 @@ func TestUpdatedKeyfileContents(t *testing.T) {
t
.
Error
(
err
)
return
}
time
.
Sleep
(
1000
*
time
.
Millisecond
)
// Now replace file contents with crap
if
err
:=
ioutil
.
WriteFile
(
file
,
[]
byte
(
"foo"
),
0644
);
err
!=
nil
{
t
.
Fatal
(
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