mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2024-11-23 13:23:36 +03:00
replace Nil with NoError
This commit is contained in:
parent
5660e21fb8
commit
599c75c167
1 changed files with 2 additions and 3 deletions
|
@ -13,13 +13,13 @@ func TestLabelUpdate(t *testing.T) {
|
|||
ls := labels.Labels{}
|
||||
|
||||
initialLabel, err := labels.Parse("testlabel:docker://alpine")
|
||||
assert.Nil(t, err)
|
||||
assert.NoError(t, err)
|
||||
ls = append(ls, initialLabel)
|
||||
|
||||
newLs := labels.Labels{}
|
||||
|
||||
newLabel, err := labels.Parse("next label:host")
|
||||
assert.Nil(t, err)
|
||||
assert.NoError(t, err)
|
||||
newLs = append(newLs, initialLabel)
|
||||
newLs = append(newLs, newLabel)
|
||||
|
||||
|
@ -34,5 +34,4 @@ func TestLabelUpdate(t *testing.T) {
|
|||
|
||||
assert.Contains(t, runner.labels, initialLabel)
|
||||
assert.Contains(t, runner.labels, newLabel)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue