Skip to content

Commit

Permalink
Bring in the testclock from juju/clock.
Browse files Browse the repository at this point in the history
  • Loading branch information
howbazaar committed Aug 20, 2018
1 parent 9e7986d commit a517fc6
Show file tree
Hide file tree
Showing 80 changed files with 94 additions and 22 deletions.
1 change: 1 addition & 0 deletions api/apiclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"time"

"github.com/juju/clock"
"github.com/juju/clock/testclock"
"github.com/juju/errors"
proxyutils "github.com/juju/proxy"
"github.com/juju/testing"
Expand Down
3 changes: 2 additions & 1 deletion api/base/mocks/clientfacade_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion api/base/mocks/facadecaller_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/crossmodelrelations/macarooncache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package crossmodelrelations_test
import (
"time"

"github.com/juju/testing"
"github.com/juju/clock/testclock"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
"gopkg.in/macaroon.v2-unstable"
Expand Down
1 change: 1 addition & 0 deletions api/monitor_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"errors"
"time"

"github.com/juju/clock/testclock"
"github.com/juju/testing"
gc "gopkg.in/check.v1"

Expand Down
1 change: 1 addition & 0 deletions apiserver/authentication/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"net/http"
"time"

"github.com/juju/clock/testclock"
"github.com/juju/errors"
"github.com/juju/loggo"
"github.com/juju/testing"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/common/crossmodel/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"github.com/juju/testing"
"github.com/juju/clock/testclock"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
gc "gopkg.in/check.v1"
Expand Down
3 changes: 2 additions & 1 deletion apiserver/common/mocks/mock_upgradeseries.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions apiserver/facades/agent/presence/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"time"

"github.com/juju/clock"
"github.com/juju/clock/testclock"
"github.com/juju/errors"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/juju/clock"
"github.com/juju/testing"
"github.com/juju/clock/testclock"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
"gopkg.in/juju/names.v2"
Expand Down
1 change: 1 addition & 0 deletions apiserver/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"net"
"time"

"github.com/juju/clock/testclock"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
Expand Down
1 change: 1 addition & 0 deletions apiserver/logsink/logsink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"time"

"github.com/gorilla/websocket"
"github.com/juju/clock/testclock"
"github.com/juju/loggo"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
Expand Down
1 change: 1 addition & 0 deletions apiserver/observer/metricobserver/observer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package metricobserver_test
import (
"time"

"github.com/juju/clock/testclock"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/prometheus/client_golang/prometheus"
Expand Down
1 change: 1 addition & 0 deletions apiserver/observer/metricobserver/observerfactory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"errors"
"time"

"github.com/juju/clock/testclock"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/prometheus/client_golang/prometheus"
Expand Down
1 change: 1 addition & 0 deletions apiserver/observer/recorder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package observer_test
import (
"time"

"github.com/juju/clock/testclock"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
Expand Down
1 change: 1 addition & 0 deletions apiserver/observer/request_notifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package observer_test
import (
"time"

"github.com/juju/clock/testclock"
"github.com/juju/loggo"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
Expand Down
1 change: 1 addition & 0 deletions apiserver/pinger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package apiserver_test
import (
"time"

"github.com/juju/clock/testclock"
"github.com/juju/errors"
"github.com/juju/loggo"
"github.com/juju/testing"
Expand Down
1 change: 1 addition & 0 deletions cmd/juju/controller/kill_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"time"

"github.com/juju/clock"
"github.com/juju/clock/testclock"
"github.com/juju/cmd"
"github.com/juju/cmd/cmdtesting"
"github.com/juju/errors"
Expand Down
1 change: 1 addition & 0 deletions container/kvm/sync_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"strings"
"time"

"github.com/juju/clock/testclock"
"github.com/juju/errors"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
Expand Down
1 change: 1 addition & 0 deletions core/auditlog/auditlog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"path/filepath"
"time"

"github.com/juju/clock/testclock"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
Expand Down
1 change: 1 addition & 0 deletions core/presence/presence_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package presence_test
import (
"time"

"github.com/juju/clock/testclock"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
Expand Down
1 change: 1 addition & 0 deletions network/debinterfaces/activate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"time"

"github.com/juju/clock"
"github.com/juju/clock/testclock"
"github.com/juju/juju/network/debinterfaces"
"github.com/juju/testing"
gc "gopkg.in/check.v1"
Expand Down
1 change: 1 addition & 0 deletions network/scriptrunner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"time"

"github.com/juju/clock"
"github.com/juju/clock/testclock"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
Expand Down
1 change: 1 addition & 0 deletions provider/azure/internal/azureauth/serviceprincipal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/Azure/go-autorest/autorest/adal"
"github.com/Azure/go-autorest/autorest/mocks"
"github.com/Azure/go-autorest/autorest/to"
"github.com/juju/clock/testclock"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
Expand Down
1 change: 1 addition & 0 deletions provider/ec2/securitygroups_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"time"

"github.com/juju/clock"
"github.com/juju/clock/testclock"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
amzec2 "gopkg.in/amz.v3/ec2"
Expand Down
3 changes: 2 additions & 1 deletion provider/lxd/credentials_mock_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion provider/lxd/net_mock_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion provider/lxd/provider_mock_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion provider/lxd/server_mock_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion provider/oci/testing/mocks_compute.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion provider/oci/testing/mocks_firewall.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion provider/oci/testing/mocks_identity.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion provider/oci/testing/mocks_networking.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion provider/oci/testing/mocks_storage.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions provider/vsphere/internal/vsphereclient/createvm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"net/http"
"time"

"github.com/juju/clock/testclock"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/vmware/govmomi/vim25/mo"
Expand Down
1 change: 1 addition & 0 deletions state/logdb/buf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"errors"
"time"

"github.com/juju/clock/testclock"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
Expand Down
2 changes: 1 addition & 1 deletion state/status_history_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"regexp"
"time"

"github.com/juju/clock/testclock"
"github.com/juju/collections/set"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils/arch"
gc "gopkg.in/check.v1"
Expand Down
2 changes: 1 addition & 1 deletion state/upgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"sort"
"time"

"github.com/juju/clock/testclock"
"github.com/juju/collections/set"
"github.com/juju/errors"
"github.com/juju/loggo"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/kr/pretty"
Expand Down
1 change: 1 addition & 0 deletions utils/scriptrunner/scriptrunner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"time"

"github.com/juju/clock"
"github.com/juju/clock/testclock"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
Expand Down
1 change: 1 addition & 0 deletions worker/apiserver/manifold_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"net/http"
"time"

"github.com/juju/clock/testclock"
"github.com/juju/errors"
"github.com/juju/pubsub"
"github.com/juju/testing"
Expand Down
1 change: 1 addition & 0 deletions worker/apiserver/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"net/http"
"time"

"github.com/juju/clock/testclock"
"github.com/juju/pubsub"
"github.com/juju/testing"
gc "gopkg.in/check.v1"
Expand Down
1 change: 1 addition & 0 deletions worker/caasoperator/caasoperator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"sync/atomic"
"time"

"github.com/juju/clock/testclock"
"github.com/juju/errors"
"github.com/juju/juju/core/life"
"github.com/juju/os/series"
Expand Down
Loading

0 comments on commit a517fc6

Please sign in to comment.