diff options
author | TheFox0x7 <thefox0x7@gmail.com> | 2024-04-10 23:20:34 +0200 |
---|---|---|
committer | TheFox0x7 <thefox0x7@gmail.com> | 2024-04-10 23:55:42 +0200 |
commit | 599c75c16733d4a043151163b997259ec713841b (patch) | |
tree | ffdc56be6a051be467251cd395d3929a67fe02f0 /internal | |
parent | added simple test to label update (diff) | |
download | forgejo-runner-599c75c16733d4a043151163b997259ec713841b.tar.xz forgejo-runner-599c75c16733d4a043151163b997259ec713841b.zip |
replace Nil with NoError
Diffstat (limited to 'internal')
-rw-r--r-- | internal/app/run/runner_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/app/run/runner_test.go b/internal/app/run/runner_test.go index cb40323..0145c70 100644 --- a/internal/app/run/runner_test.go +++ b/internal/app/run/runner_test.go @@ -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) - } |