diff --git a/js/modules/k6/grpc/grpc.go b/js/modules/k6/grpc/grpc.go index 829e2e50e6ac..5864e96eceaf 100644 --- a/js/modules/k6/grpc/grpc.go +++ b/js/modules/k6/grpc/grpc.go @@ -27,7 +27,7 @@ import ( ) func init() { - modules.Register("k6/protocols/grpc", New()) + modules.Register("k6/net/grpc", New()) } // GRPC represents the gRPC protocol module for k6 diff --git a/samples/grpc.js b/samples/grpc.js index 072159f631b2..4690c647af5c 100644 --- a/samples/grpc.js +++ b/samples/grpc.js @@ -1,4 +1,4 @@ -import grpc from 'k6/protocols/grpc'; +import grpc from 'k6/net/grpc'; import { check } from "k6"; let client = grpc.newClient();