Skip to content

Commit b3c33e1

Browse files
committed
Fix comment
Signed-off-by: Takeshi Yoneda <[email protected]>
1 parent 5ce9aa6 commit b3c33e1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

data/extension/init/templates/tinygo/envoy.filters.http/default/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ENVOY=ISTIO`
2222

2323
// Call OnPluginStart -> the metric is initialized.
2424
status := host.StartPlugin()
25-
// Check the status returned by OnNewConnection is ActionContinue.
25+
// Check the status returned by OnPluginStart is OK.
2626
require.Equal(t, types.OnPluginStartStatusOK, status)
2727

2828
// Create http context.

data/extension/init/templates/tinygo/envoy.filters.network/default/main_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ func TestNetworkFilter_counter(t *testing.T) {
4040
defer host.Done()
4141

4242
// Initialize the plugin and metric.
43-
host.StartPlugin()
43+
status := host.StartPlugin()
44+
// Check the status returned by OnPluginStart is OK.
45+
require.Equal(t, types.OnPluginStartStatusOK, status)
4446

4547
// Establish the connection.
4648
contextID, action := host.InitializeConnection()

0 commit comments

Comments
 (0)