Hi, currently I’m learning k6, I have a script as below:
import grpc from 'k6/net/grpc';
import { check, sleep } from 'k6';
const client = new grpc.Client();
client.load(['protobuf'], 'relay-server.proto');
export default () => {
client.connect('url:80/relay', {
});
const data = { id: 'testing123'};
const response = client.invoke('relay.HelloService/StartPairing', data);
check(response, {
'status is OK': (r) => r && r.status === grpc.StatusOK,
});
console.log(JSON.stringify(response.message));
client.close();
sleep(1);
};
Running the test, I would get a deadline exceeded, I also want to see what the stream was returning, but checking docs does not give me any results yet, how do I enable log for streaming ?