Skip to content

Commit 6e156d8

Browse files
committed
fix github actions
1 parent c3e992a commit 6e156d8

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

core/cli_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"time"
1010
)
1111

12-
func TestRealize_Stop(t *testing.T) {
12+
func TestFly_Stop(t *testing.T) {
1313
r := Fly{}
1414
r.Projects = append(r.Schema.Projects, Project{exit: make(chan os.Signal, 1)})
1515
r.Stop()
@@ -19,7 +19,7 @@ func TestRealize_Stop(t *testing.T) {
1919
}
2020
}
2121

22-
func TestRealize_Start(t *testing.T) {
22+
func TestFly_Start(t *testing.T) {
2323
r := Fly{}
2424
err := r.Start()
2525
if err == nil {
@@ -40,7 +40,7 @@ func TestRealize_Start(t *testing.T) {
4040
}
4141
}
4242

43-
func TestRealize_Prefix(t *testing.T) {
43+
func TestFly_Prefix(t *testing.T) {
4444
r := Fly{}
4545
input := "test"
4646
result := r.Prefix(input)

main_test.go

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,47 @@ import (
1111

1212
var mockResponse interface{}
1313

14-
type mockRealize core.Fly
14+
type mockFly core.Fly
1515

16-
func (m *mockRealize) add() error {
16+
func (m *mockFly) add() error {
1717
if mockResponse != nil {
1818
return mockResponse.(error)
1919
}
2020
m.Projects = append(m.Projects, core.Project{Name: "One"})
2121
return nil
2222
}
2323

24-
func (m *mockRealize) setup() error {
24+
func (m *mockFly) setup() error {
2525
if mockResponse != nil {
2626
return mockResponse.(error)
2727
}
2828
return nil
2929
}
3030

31-
func (m *mockRealize) start() error {
31+
func (m *mockFly) start() error {
3232
if mockResponse != nil {
3333
return mockResponse.(error)
3434
}
3535
return nil
3636
}
3737

38-
func (m *mockRealize) clean() error {
38+
func (m *mockFly) clean() error {
3939
if mockResponse != nil {
4040
return mockResponse.(error)
4141
}
4242
return nil
4343
}
4444

45-
func (m *mockRealize) remove() error {
45+
func (m *mockFly) remove() error {
4646
if mockResponse != nil {
4747
return mockResponse.(error)
4848
}
4949
m.Projects = []core.Project{}
5050
return nil
5151
}
5252

53-
func TestRealize_add(t *testing.T) {
54-
m := mockRealize{}
53+
func TestFly_add(t *testing.T) {
54+
m := mockFly{}
5555
mockResponse = nil
5656
if err := m.add(); err != nil {
5757
t.Error("Unexpected error")
@@ -60,7 +60,7 @@ func TestRealize_add(t *testing.T) {
6060
t.Error("Unexpected error")
6161
}
6262

63-
m = mockRealize{}
63+
m = mockFly{}
6464
m.Projects = []core.Project{{Name: "Default"}}
6565
mockResponse = nil
6666
if err := m.add(); err != nil {
@@ -70,7 +70,7 @@ func TestRealize_add(t *testing.T) {
7070
t.Error("Unexpected error")
7171
}
7272

73-
m = mockRealize{}
73+
m = mockFly{}
7474
mockResponse = errors.New("error")
7575
if err := m.clean(); err == nil {
7676
t.Error("Expected error")
@@ -80,24 +80,24 @@ func TestRealize_add(t *testing.T) {
8080
}
8181
}
8282

83-
func TestRealize_start(t *testing.T) {
84-
m := mockRealize{}
83+
func TestFly_start(t *testing.T) {
84+
m := mockFly{}
8585
mockResponse = nil
8686
if err := m.add(); err != nil {
8787
t.Error("Unexpected error")
8888
}
8989
}
9090

91-
func TestRealize_setup(t *testing.T) {
92-
m := mockRealize{}
91+
func TestFly_setup(t *testing.T) {
92+
m := mockFly{}
9393
mockResponse = nil
9494
if err := m.setup(); err != nil {
9595
t.Error("Unexpected error")
9696
}
9797
}
9898

99-
func TestRealize_clean(t *testing.T) {
100-
m := mockRealize{}
99+
func TestFly_clean(t *testing.T) {
100+
m := mockFly{}
101101
mockResponse = nil
102102
if err := m.clean(); err != nil {
103103
t.Error("Unexpected error")
@@ -108,14 +108,14 @@ func TestRealize_clean(t *testing.T) {
108108
}
109109
}
110110

111-
func TestRealize_remove(t *testing.T) {
112-
m := mockRealize{}
111+
func TestFly_remove(t *testing.T) {
112+
m := mockFly{}
113113
mockResponse = nil
114114
if err := m.remove(); err != nil {
115115
t.Error("Unexpected error")
116116
}
117117

118-
m = mockRealize{}
118+
m = mockFly{}
119119
mockResponse = nil
120120
m.Projects = []core.Project{{Name: "Default"}, {Name: "Default"}}
121121
if err := m.remove(); err != nil {
@@ -131,7 +131,7 @@ func TestRealize_remove(t *testing.T) {
131131
}
132132
}
133133

134-
func TestRealize_version(t *testing.T) {
134+
func TestFly_version(t *testing.T) {
135135
var buf bytes.Buffer
136136
log.SetOutput(&buf)
137137
version()

0 commit comments

Comments
 (0)