Skip to content

Commit 1bbebc7

Browse files
committed
Get more tests working with updated mock
1 parent 109cabb commit 1bbebc7

File tree

6 files changed

+149
-15
lines changed

6 files changed

+149
-15
lines changed

Tools/src/checkstyle.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ if [[ -n $unformatted ]]; then
2929
fi
3030

3131
echo "Run 'go vet'"
32-
ln -s `pwd` `pwd`/vendor/src/github.com/aws/session-manager-plugin
3332
go vet ./src/...

go.mod

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ require (
1111
github.com/stretchr/testify v1.10.0
1212
github.com/xtaci/smux v1.5.33
1313
golang.org/x/crypto v0.32.0
14-
golang.org/x/sync v0.10.0
15-
golang.org/x/sys v0.29.0
14+
golang.org/x/sync v0.11.0
15+
golang.org/x/sys v0.30.0
1616
)
1717

1818
require (
@@ -22,6 +22,8 @@ require (
2222
github.com/mattn/go-isatty v0.0.19 // indirect
2323
github.com/pmezard/go-difflib v1.0.0 // indirect
2424
github.com/stretchr/objx v0.5.2 // indirect
25+
golang.org/x/mod v0.23.0 // indirect
2526
golang.org/x/term v0.28.0 // indirect
27+
golang.org/x/tools v0.30.0 // indirect
2628
gopkg.in/yaml.v3 v3.0.1 // indirect
2729
)

go.sum

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,23 @@ github.com/xtaci/smux v1.5.33 h1:xosoZt0AUZdIXEB6z09kt1bge+l1L8wzMtJdPB6GAPI=
3535
github.com/xtaci/smux v1.5.33/go.mod h1:OMlQbT5vcgl2gb49mFkYo6SMf+zP3rcjcwQz7ZU7IGY=
3636
golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc=
3737
golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc=
38+
golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM=
39+
golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
3840
golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=
3941
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
42+
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
43+
golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
4044
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
4145
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
4246
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
4347
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
4448
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
49+
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
50+
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
4551
golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg=
4652
golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek=
53+
golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY=
54+
golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY=
4755
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
4856
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
4957
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
COPY := cp -p
2-
GO_BUILD := go build -i
2+
GO_BUILD := go build
33

44
# Default build configuration, can be overridden at build time.
55
GOARCH?=$(shell go env GOARCH)

src/datachannel/mocks/IDataChannel.go

Lines changed: 135 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sessionmanagerplugin/session/session_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func TestExecute(t *testing.T) {
114114
mockDataChannel.On("IsSessionTypeSet").Return(isSessionTypeSetMock)
115115
mockDataChannel.On("GetSessionType").Return("Standard_Stream")
116116
mockDataChannel.On("GetSessionProperties").Return("SessionProperties")
117+
mockDataChannel.On("IsSessionEnded").Return(false)
117118

118119
isStreamMessageResendTimeout := make(chan bool, 1)
119120
mockDataChannel.On("IsStreamMessageResendTimeout").Return(isStreamMessageResendTimeout)

0 commit comments

Comments
 (0)