Skip to content

Commit

Permalink
Change type of batch_size_received in simple_log_processor_test to (#425
Browse files Browse the repository at this point in the history
)

Change type of batch_size_received to size_t
  • Loading branch information
ThomsonTan authored Dec 8, 2020
1 parent a4a88dd commit 1694139
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/test/logs/simple_log_processor_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class TestExporter final : public LogExporter
public:
TestExporter(int *shutdown_counter,
std::shared_ptr<std::vector<std::string>> logs_received,
int *batch_size_received)
size_t *batch_size_received)
: shutdown_counter_(shutdown_counter),
logs_received_(logs_received),
batch_size_received(batch_size_received)
Expand Down Expand Up @@ -46,7 +46,7 @@ class TestExporter final : public LogExporter
private:
int *shutdown_counter_;
std::shared_ptr<std::vector<std::string>> logs_received_;
int *batch_size_received;
size_t *batch_size_received;
};

// Tests whether the simple processor successfully creates a batch of size 1
Expand All @@ -55,7 +55,7 @@ TEST(SimpleLogProcessorTest, SendReceivedLogsToExporter)
{
// Create a simple processor with a TestExporter attached
std::shared_ptr<std::vector<std::string>> logs_received(new std::vector<std::string>);
int batch_size_received = 0;
size_t batch_size_received = 0;

std::unique_ptr<TestExporter> exporter(
new TestExporter(nullptr, logs_received, &batch_size_received));
Expand Down

0 comments on commit 1694139

Please sign in to comment.