Skip to content

Fix race condition in TEST(FileSystemImpl, flushToLogFileOnDemand)#1776

Merged
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
ggreenway:fix-test-race
Sep 30, 2017
Merged

Fix race condition in TEST(FileSystemImpl, flushToLogFileOnDemand)#1776
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
ggreenway:fix-test-race

Conversation

@ggreenway
Copy link
Copy Markdown
Member

Signed-off-by: Greg Greenway ggreenway@apple.com

Signed-off-by: Greg Greenway <ggreenway@apple.com>
htuch
htuch previously approved these changes Sep 29, 2017
.WillOnce(Invoke([](int, const void*, size_t num_bytes) -> ssize_t { return num_bytes; }));
file.write("prime-it");
file.flush();
unsigned expected_writes = 1;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: uint32_t (or some other fixed size type).

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing. Looks good. Small nit.

.WillOnce(Invoke([](int, const void*, size_t num_bytes) -> ssize_t { return num_bytes; }));
file.write("prime-it");
file.flush();
unsigned expected_writes = 1;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: prefer explicitly sized variable types such as uint64_t.

Signed-off-by: Greg Greenway <ggreenway@apple.com>
@mattklein123 mattklein123 merged commit 5835c21 into envoyproxy:master Sep 30, 2017
costinm pushed a commit to costinm/envoy that referenced this pull request Oct 2, 2017
rshriram pushed a commit to rshriram/envoy that referenced this pull request Oct 30, 2018
* Update api sha (envoyproxy#1753)

* Add service config forwarded attributes

Signed-off-by: Kuat Yessenov <kuat@google.com>

* clang-format

Signed-off-by: Kuat Yessenov <kuat@google.com>

* clang-format google style

Signed-off-by: Kuat Yessenov <kuat@google.com>

* get rid of boolean

Signed-off-by: Kuat Yessenov <kuat@google.com>

* add a test

Signed-off-by: Kuat Yessenov <kuat@google.com>

* update api

Signed-off-by: Kuat Yessenov <kuat@google.com>

* fix repo commit

Signed-off-by: Kuat Yessenov <kuat@google.com>
jpsim pushed a commit that referenced this pull request Nov 28, 2022
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: JP Simard <jp@jpsim.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants