Skip to content

Commit 99a121d

Browse files
committed
finetune
1 parent a2f59a7 commit 99a121d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

context.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ type Context struct {
1616
func NewContext(config *Config) *Context {
1717
start := &sync.WaitGroup{}
1818
start.Add(config.concurrency)
19-
stop := make(chan bool)
20-
return &Context{config, start, stop, &sync.RWMutex{}, make(map[string]interface{})}
19+
return &Context{config, start, make(chan bool), &sync.RWMutex{}, make(map[string]interface{})}
2120
}
2221

2322
func (c *Context) SetString(key string, value string) {

context_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func TestSetAndGetString(t *testing.T) {
1010
value := "value"
1111
context.SetString(key, value)
1212
if context.GetString(key) != value {
13-
t.Fatalf("expect %s, get %s", key, value)
13+
t.Fatalf("expected %s, get %s", key, value)
1414
}
1515
}
1616

@@ -20,6 +20,6 @@ func TestSetAndGetInt(t *testing.T) {
2020
value := 123
2121
context.SetInt(key, value)
2222
if context.GetInt(key) != value {
23-
t.Fatalf("expect %s, get %s", key, value)
23+
t.Fatalf("expected %s, get %s", key, value)
2424
}
2525
}

0 commit comments

Comments
 (0)