File tree 8 files changed +17
-7
lines changed
8 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
"time"
11
11
12
12
"github.com/jinzhu/gorm"
13
- "github.com/remind101/pkg/timex"
13
+ "github.com/remind101/empire/ pkg/timex"
14
14
"golang.org/x/net/context"
15
15
)
16
16
Original file line number Diff line number Diff line change 6
6
"time"
7
7
8
8
"github.com/jinzhu/gorm"
9
- "github.com/remind101/pkg/timex"
9
+ "github.com/remind101/empire/ pkg/timex"
10
10
)
11
11
12
12
type Domain struct {
Original file line number Diff line number Diff line change
1
+ package timex
2
+
3
+ import "time"
4
+
5
+ // Now is a function that returns the current time, but can easily be stubbed
6
+ // out by setting it to a function that returns a mock value. The default is to
7
+ // call time.Now().
8
+ var Now = func () time.Time {
9
+ return time .Now ().UTC ()
10
+ }
Original file line number Diff line number Diff line change 6
6
7
7
"github.com/jinzhu/gorm"
8
8
"github.com/remind101/empire/pkg/headerutil"
9
+ "github.com/remind101/empire/pkg/timex"
9
10
"github.com/remind101/empire/procfile"
10
11
"github.com/remind101/empire/twelvefactor"
11
- "github.com/remind101/pkg/timex"
12
12
"golang.org/x/net/context"
13
13
)
14
14
Original file line number Diff line number Diff line change 5
5
"io"
6
6
"sync"
7
7
8
+ "github.com/remind101/empire/pkg/timex"
8
9
"github.com/remind101/empire/twelvefactor"
9
- "github.com/remind101/pkg/timex"
10
10
"golang.org/x/net/context"
11
11
)
12
12
Original file line number Diff line number Diff line change 9
9
"github.com/remind101/empire/pkg/heroku"
10
10
"github.com/remind101/empire/pkg/hijack"
11
11
streamhttp "github.com/remind101/empire/pkg/stream/http"
12
+ "github.com/remind101/empire/pkg/timex"
12
13
"github.com/remind101/empire/server/auth"
13
14
"github.com/remind101/pkg/httpx"
14
- "github.com/remind101/pkg/timex"
15
15
"golang.org/x/net/context"
16
16
)
17
17
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ import (
12
12
"github.com/remind101/empire"
13
13
"github.com/remind101/empire/empiretest"
14
14
"github.com/remind101/empire/empiretest/cli"
15
+ "github.com/remind101/empire/pkg/timex"
15
16
"github.com/remind101/empire/server/auth"
16
17
"github.com/remind101/empire/server/heroku"
17
- "github.com/remind101/pkg/timex"
18
18
)
19
19
20
20
// empPath can be used to change what binary is used to run the tests.
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ import (
13
13
"github.com/remind101/empire"
14
14
"github.com/remind101/empire/empiretest"
15
15
"github.com/remind101/empire/pkg/image"
16
+ "github.com/remind101/empire/pkg/timex"
16
17
"github.com/remind101/empire/procfile"
17
18
"github.com/remind101/empire/twelvefactor"
18
- "github.com/remind101/pkg/timex"
19
19
"github.com/stretchr/testify/assert"
20
20
"github.com/stretchr/testify/mock"
21
21
)
You can’t perform that action at this time.
0 commit comments