Skip to content

Commit bb69791

Browse files
committed
test: rename bench_func to remote_echo
The function simply returns passed arguments, just like echo. Let's call it with more convenient name that doesn't have anything in common with benchmarks to use it in tests later. Part of #108
1 parent 395013e commit bb69791

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/ClientPerfTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ executeRequest(Connection<BUFFER, NetProvider> &conn, int request_type, int key)
100100
case Iproto::SELECT:
101101
return conn.space[space_id].select(std::make_tuple(key));
102102
case Iproto::CALL:
103-
return conn.call("bench_func", std::make_tuple(1, 2, 3, 4, 5));
103+
return conn.call("remote_echo", std::make_tuple(1, 2, 3, 4, 5));
104104
default:
105105
abort();
106106
}

test/cfg.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function remote_map()
3030
return {key = 777}
3131
end
3232

33-
function bench_func(...)
33+
function remote_echo(...)
3434
return {...}
3535
end
3636

test/cfg_ssl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function remote_multi()
2828
return 'Hello', 1, 6.66
2929
end
3030

31-
function bench_func(...)
31+
function remote_echo(...)
3232
return {...}
3333
end
3434

0 commit comments

Comments
 (0)