1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-07 21:37:04 +09:00

GO-4500 Revive perf tests

This commit is contained in:
Mikhail Iudin 2024-11-14 18:06:53 +01:00
parent 7653e88ab4
commit 04989eb4d7
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0
6 changed files with 7 additions and 7 deletions

View file

@ -74,7 +74,7 @@ func iterate(prep *input, result internal.PerfResult) error {
return err
}
err = internal.ExecuteCommand(internal.GrpcMetricsSetParameters())
err = internal.ExecuteCommand(internal.GrpcInitialSetParameters())
if err != nil {
return err
}

View file

@ -80,7 +80,7 @@ func iterate(prep *input, result internal.PerfResult) error {
}
grpcurlCommands := []internal.Command{
{internal.GrpcMetricsSetParameters(), ""},
{internal.GrpcInitialSetParameters(), ""},
{internal.GrpcWalletRecover(prep.Workspace, prep.Mnemonic), ""},
{internal.GrpcWalletCreateSession(prep.Mnemonic), ""},
accountSelect(prep),

View file

@ -169,11 +169,11 @@ func GrpcAccountCreate(workspace, networkMode, staging string) string {
}' localhost:31007 anytype.ClientCommands.AccountCreate`
}
func GrpcMetricsSetParameters() string {
func GrpcInitialSetParameters() string {
return `grpcurl -import-path ../anytype-heart/ -proto pb/protos/service/service.proto -plaintext -d '{
"platform": "test",
"version": "0.0.0-test"
}' localhost:31007 anytype.ClientCommands.MetricsSetParameters`
}' localhost:31007 anytype.ClientCommands.InitialSetParameters`
}
func StartAnytypeBackground() error {

View file

@ -99,7 +99,7 @@ func makeIteration() error {
`grpcurl -import-path ../anytype-heart/ -proto pb/protos/service/service.proto -plaintext -d '{
"platform": "test",
"version": "0.0.0-test"
}' localhost:31007 anytype.ClientCommands.MetricsSetParameters`,
}' localhost:31007 anytype.ClientCommands.InitialSetParameters`,
`grpcurl -import-path ../anytype-heart/ -proto pb/protos/service/service.proto -plaintext -d '{
"rootPath": "` + testRootPath + `",

View file

@ -50,7 +50,7 @@ func (s *Service) GetApp() *app.App {
func (s *Service) requireClientWithVersion() {
if s.clientWithVersion == "" {
panic(errors.New("client platform with the version must be set using the MetricsSetParameters method"))
panic(errors.New("client platform with the version must be set using the InitialSetParameters method"))
}
}

View file

@ -38,7 +38,7 @@ var excludedMethods = []string{
"ObjectSearchSubscribe",
"ObjectSearchUnsubscribe",
"ObjectSubscribeIds",
"MetricsSetParameters",
"InitialSetParameters",
"AppSetDeviceState",
}