Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
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
nexedi
caddy
Commits
15455e5a
Commit
15455e5a
authored
Oct 31, 2018
by
16yuki0702
Committed by
Matt Holt
Oct 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caddytls: Improve flaky test related to email (#2318)
Signed-off-by:
Hiroyuki Sasagawa
<
hs19870702@gmail.com
>
parent
f46da403
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
caddytls/user_test.go
caddytls/user_test.go
+3
-3
No files found.
caddytls/user_test.go
View file @
15455e5a
...
...
@@ -179,9 +179,9 @@ func TestGetEmail(t *testing.T) {
// Test3: Get most recent email from before (in storage)
DefaultEmail
=
""
for
i
,
eml
:=
range
[]
string
{
"TEST4-3@foo.com"
,
// test case insensitivity
"test4-2@foo.com"
,
"test4-1@foo.com"
,
"test4-2@foo.com"
,
"TEST4-3@foo.com"
,
// test case insensitivity
}
{
u
,
err
:=
newUser
(
eml
)
if
err
!=
nil
{
...
...
@@ -197,7 +197,7 @@ func TestGetEmail(t *testing.T) {
if
err
!=
nil
{
t
.
Fatalf
(
"Could not access user folder for '%s': %v"
,
eml
,
err
)
}
chTime
:=
f
.
ModTime
()
.
Add
(
-
(
time
.
Duration
(
i
)
*
time
.
Hour
)
)
// 1 second isn't always enough space!
chTime
:=
f
.
ModTime
()
.
Add
(
time
.
Duration
(
i
)
*
time
.
Hour
)
// 1 second isn't always enough space!
if
err
:=
os
.
Chtimes
(
testStorage
.
user
(
eml
),
chTime
,
chTime
);
err
!=
nil
{
t
.
Fatalf
(
"Could not change user folder mod time for '%s': %v"
,
eml
,
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