Skip to content

Commit

Permalink
test: fix typos in test code (envoyproxy#6086)
Browse files Browse the repository at this point in the history
Signed-off-by: Vu Cong Tuan <[email protected]>
  • Loading branch information
tuanvcw authored and mattklein123 committed Mar 1, 2019
1 parent beebeef commit 39c08da
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/common/runtime/runtime_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ void DiskLayer::walkDirectory(const std::string& path, const std::string& prefix
Api::Api& api) {
ENVOY_LOG(debug, "walking directory: {}", path);
if (depth > MaxWalkDepth) {
throw EnvoyException(fmt::format("Walk recursion depth exceded {}", MaxWalkDepth));
throw EnvoyException(fmt::format("Walk recursion depth exceeded {}", MaxWalkDepth));
}
// Check if this is an obviously bad path.
if (api.fileSystem().illegalPath(path)) {
Expand Down
2 changes: 1 addition & 1 deletion test/common/config/grpc_mux_impl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ TEST_F(GrpcMuxImplTest, TooManyRequestsWithCustomRateLimitSettings) {
EXPECT_EQ(0, stats_.counter("control_plane.pending_requests").value());
}

// Verifies that a messsage with no resources is accepted.
// Verifies that a message with no resources is accepted.
TEST_F(GrpcMuxImplTest, UnwatchedTypeAcceptsEmptyResources) {
setup();

Expand Down
2 changes: 1 addition & 1 deletion test/common/runtime/runtime_impl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ TEST_F(DiskLayerTest, Loop) {
EXPECT_THROW_WITH_MESSAGE(
DiskLayer("test", TestEnvironment::temporaryPath("test/common/runtime/test_data/loop"),
*api_),
EnvoyException, "Walk recursion depth exceded 16");
EnvoyException, "Walk recursion depth exceeded 16");
}

} // namespace
Expand Down
2 changes: 1 addition & 1 deletion test/server/guarddog_impl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ TEST_F(GuardDogTestBase, WatchDogThreadIdTest) {

// If this test fails it is because the std::chrono::steady_clock::duration type has become
// nontrivial or we are compiling under a compiler and library combo that makes
// std::chrono::steady_clock::duration require a lock to be atomicly modified.
// std::chrono::steady_clock::duration require a lock to be atomically modified.
//
// The WatchDog/GuardDog relies on this being a lock free atomic for perf reasons so some workaround
// will be required if this test starts failing.
Expand Down

0 comments on commit 39c08da

Please sign in to comment.