Skip to content

Commit c2b617a

Browse files
committed
fix IsAlive test
1 parent 0eab70a commit c2b617a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/demoinfocs/common/common_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/golang/geo/r3"
88
"github.com/stretchr/testify/assert"
9+
"github.com/stretchr/testify/mock"
910

1011
st "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables"
1112
stfake "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables/fake"
@@ -233,6 +234,8 @@ func entityWithProperty(propName string, value st.PropertyValue) *stfake.Entity
233234
func entityWithProperties(properties []fakeProp) *stfake.Entity {
234235
entity := entityWithID(1)
235236

237+
entity.On("Property", mock.Anything).Return(nil)
238+
236239
for _, prop := range properties {
237240
property := new(stfake.Property)
238241
property.On("Value").Return(prop.value)

0 commit comments

Comments
 (0)