Skip to content

Commit d0d1cd6

Browse files
committed
renaming sleepworkflow to sleep
1 parent a91519f commit d0d1cd6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ PROGS = helloworld \
3535
pageflow \
3636
signalcounter \
3737
sideeffect \
38-
sleepworkflow \
38+
sleep \
3939

4040
TEST_ARG ?= -race -v -timeout 5m
4141
BUILD := ./build
@@ -69,7 +69,7 @@ TEST_DIRS=./cmd/samples/cron \
6969
./cmd/samples/recipes/searchattributes \
7070
./cmd/samples/recipes/sideeffect \
7171
./cmd/samples/recipes/signalcounter \
72-
./cmd/samples/recipes/sleepworkflow \
72+
./cmd/samples/recipes/sleep \
7373
./cmd/samples/recovery \
7474
./cmd/samples/pso \
7575

@@ -83,8 +83,8 @@ helloworld:
8383
delaystart:
8484
go build -o bin/delaystart cmd/samples/recipes/delaystart/*.go
8585

86-
sleepworkflow:
87-
go build -o bin/sleepworkflow cmd/samples/recipes/sleepworkflow/*.go
86+
sleep:
87+
go build -o bin/sleep cmd/samples/recipes/sleep/*.go
8888

8989
branch:
9090
go build -o bin/branch cmd/samples/recipes/branch/*.go
@@ -212,7 +212,7 @@ bins: helloworld \
212212
pageflow \
213213
signalcounter \
214214
sideeffect \
215-
sleepworkflow \
215+
sleep \
216216

217217
test: bins
218218
@rm -f test

cmd/samples/recipes/sleepworkflow/main.go renamed to cmd/samples/recipes/sleep/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
const (
15-
ApplicationName = "sleepWorkflowTaskList"
15+
ApplicationName = "sleepTaskList"
1616
SleepWorkflowName = "sleepWorkflow"
1717
)
1818

@@ -30,7 +30,7 @@ func startWorkers(h *common.SampleHelper) {
3030
func startWorkflow(h *common.SampleHelper) {
3131
sleepDuration := 30 * time.Second
3232
workflowOptions := client.StartWorkflowOptions{
33-
ID: "sleepworkflow_" + uuid.New(),
33+
ID: "sleep_" + uuid.New(),
3434
TaskList: ApplicationName,
3535
ExecutionStartToCloseTimeout: time.Minute,
3636
DecisionTaskStartToCloseTimeout: time.Minute,

cmd/samples/recipes/sleepworkflow/sleep_workflow_test.go renamed to cmd/samples/recipes/sleep/sleep_workflow_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"go.uber.org/cadence/testsuite"
1111
)
1212

13-
func Test_SleepWorkflow(t *testing.T) {
13+
func Test_Sleep(t *testing.T) {
1414
testSuite := &testsuite.WorkflowTestSuite{}
1515

1616
env := testSuite.NewTestWorkflowEnvironment()

0 commit comments

Comments
 (0)