mirror of
https://github.com/status-im/consul.git
synced 2025-02-13 06:06:40 +00:00
Runs go fmt after latest changes.
This commit is contained in:
parent
ef5233165b
commit
655967d0f6
@ -103,7 +103,7 @@ func TestGraveyard_Lifecycle(t *testing.T) {
|
|||||||
|
|
||||||
func TestGraveyard_GC_Trigger(t *testing.T) {
|
func TestGraveyard_GC_Trigger(t *testing.T) {
|
||||||
// Set up a fast-expiring GC.
|
// Set up a fast-expiring GC.
|
||||||
ttl, granularity := 100 * time.Millisecond, 20 * time.Millisecond
|
ttl, granularity := 100*time.Millisecond, 20*time.Millisecond
|
||||||
gc, err := NewTombstoneGC(ttl, granularity)
|
gc, err := NewTombstoneGC(ttl, granularity)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("err: %s", err)
|
t.Fatalf("err: %s", err)
|
||||||
|
@ -63,7 +63,7 @@ func TestStructs_ServiceNode_Clone(t *testing.T) {
|
|||||||
ServiceTags: []string{"prod", "v1"},
|
ServiceTags: []string{"prod", "v1"},
|
||||||
ServiceAddress: "127.0.0.2",
|
ServiceAddress: "127.0.0.2",
|
||||||
ServicePort: 8080,
|
ServicePort: 8080,
|
||||||
RaftIndex: RaftIndex{
|
RaftIndex: RaftIndex{
|
||||||
CreateIndex: 1,
|
CreateIndex: 1,
|
||||||
ModifyIndex: 2,
|
ModifyIndex: 2,
|
||||||
},
|
},
|
||||||
@ -83,11 +83,11 @@ func TestStructs_ServiceNode_Clone(t *testing.T) {
|
|||||||
func TestStructs_DirEntry_Clone(t *testing.T) {
|
func TestStructs_DirEntry_Clone(t *testing.T) {
|
||||||
e := &DirEntry{
|
e := &DirEntry{
|
||||||
LockIndex: 5,
|
LockIndex: 5,
|
||||||
Key: "hello",
|
Key: "hello",
|
||||||
Flags: 23,
|
Flags: 23,
|
||||||
Value: []byte("this is a test"),
|
Value: []byte("this is a test"),
|
||||||
Session: "session1",
|
Session: "session1",
|
||||||
RaftIndex: RaftIndex{
|
RaftIndex: RaftIndex{
|
||||||
CreateIndex: 1,
|
CreateIndex: 1,
|
||||||
ModifyIndex: 2,
|
ModifyIndex: 2,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user