mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 04:11:03 +00:00
36e42914fa
Renamed `procs` to `steps` in code for the issue #1288 Co-authored-by: Harikesh Prajapati <harikesh.prajapati@druva.com> Co-authored-by: qwerty287 <ndev@web.de> Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de>
18 lines
303 B
Go
18 lines
303 B
Go
package rpc
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestLine(t *testing.T) {
|
|
line := Line{
|
|
Step: "redis",
|
|
Time: 60,
|
|
Pos: 1,
|
|
Out: "starting redis server",
|
|
}
|
|
got, want := line.String(), "[redis:L1:60s] starting redis server"
|
|
if got != want {
|
|
t.Errorf("Wanted line string %q, got %q", want, got)
|
|
}
|
|
}
|