Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update shim_test.go #103

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions shim/shim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
func TestStart(t *testing.T) {

var tests = []struct {
name string
name string cc

Check failure on line 21 in shim/shim_test.go

View workflow job for this annotation

GitHub Actions / build

expected ';', found cc
envVars map[string]string
peerAddress string
peerAddress string 127.0.0.1:12345
chaincodeAddress string
streamGetter func(name string) (ClientStream, error)
cc Chaincode
Expand Down Expand Up @@ -63,7 +63,7 @@
peerAddress: "127.0.0.1:12345",
streamGetter: func(name string) (ClientStream, error) {
stream := &mock.ClientStream{}
return stream, nil

Check failure on line 66 in shim/shim_test.go

View workflow job for this annotation

GitHub Actions / build

expected '}', found 'return'
},
expectedErr: "received nil message, ending chaincode stream",
},
Expand All @@ -78,8 +78,8 @@
stream := &mock.ClientStream{}
stream.RecvReturns(nil, io.EOF)
return stream, nil
},

Check failure on line 81 in shim/shim_test.go

View workflow job for this annotation

GitHub Actions / build

expected ';', found ','
expectedErr: "received EOF, ending chaincode stream",

Check failure on line 82 in shim/shim_test.go

View workflow job for this annotation

GitHub Actions / build

expected declaration, found expectedErr
},
{
name: "Chat - Recv Error",
Expand Down Expand Up @@ -181,7 +181,7 @@
},
}

for _, test := range tests {

Check failure on line 184 in shim/shim_test.go

View workflow job for this annotation

GitHub Actions / build

expected declaration, found 'for'
test := test
t.Run(test.name, func(t *testing.T) {
err := test.ccsrv.Start()
Expand Down
Loading