Skip to content

Commit

Permalink
Remove assigned variable
Browse files Browse the repository at this point in the history
Fixes a CI failure
williamfgc committed Dec 17, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 041700c commit 1f71037
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions testing/adios2/engine/bp/TestBPWriteReadVariableSpan.cpp
Original file line number Diff line number Diff line change
@@ -1579,12 +1579,10 @@ TEST_F(BPWriteReadSpan, BPWriteSpanOperatorException)
var_r64.AddOperation(
BZIP2Op, {{adios2::ops::bzip2::key::blockSize100k, "1e-4"}});

EXPECT_THROW(adios2::Variable<float>::Span r32Span = bpWriter.Put(
var_r32, true, static_cast<float>(step)),
EXPECT_THROW(bpWriter.Put(var_r32, true, static_cast<float>(step)),
std::invalid_argument);

EXPECT_THROW(adios2::Variable<double>::Span r64Span = bpWriter.Put(
var_r64, true, static_cast<double>(step)),
EXPECT_THROW(bpWriter.Put(var_r64, true, static_cast<double>(step)),
std::invalid_argument);

bpWriter.EndStep();

0 comments on commit 1f71037

Please sign in to comment.