fix some typo

This commit is contained in:
MengZn 2019-11-10 23:38:03 +08:00
parent e6ac2a53d4
commit 378a1e288c
2 changed files with 4 additions and 4 deletions

View file

@ -140,7 +140,7 @@ func (d *Datadog) Client() *http.Client {
return d.client
}
// calculate the differene between now and midnight.
// calculate the differences between now and midnight.
func midnightDiff() time.Duration {
a := time.Now()
b := time.Date(a.Year(), a.Month(), a.Day()+1, 0, 0, 0, 0, a.Location())

View file

@ -271,7 +271,7 @@ func TestTrigger_SkipBranch(t *testing.T) {
_, err := triggerer.Trigger(noContext, dummyRepo, dummyHook)
if err != nil {
t.Errorf("Expect build silenty skipped if branch does not match")
t.Errorf("Expect build silently skipped if branch does not match")
}
}
@ -309,7 +309,7 @@ func TestTrigger_SkipEvent(t *testing.T) {
_, err := triggerer.Trigger(noContext, dummyRepo, dummyHook)
if err != nil {
t.Errorf("Expect build silenty skipped if event does not match")
t.Errorf("Expect build silently skipped if event does not match")
}
}
@ -347,7 +347,7 @@ func TestTrigger_SkipAction(t *testing.T) {
_, err := triggerer.Trigger(noContext, dummyRepo, dummyHook)
if err != nil {
t.Errorf("Expect build silenty skipped if action does not match")
t.Errorf("Expect build silently skipped if action does not match")
}
}