Skip to content

Commit

Permalink
GH-134 Use file under temp dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner authored and ClaytonCalabrese committed Sep 12, 2022
1 parent bdfba67 commit 636c0f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/testing/include/eosio/testing/snapshot_suites.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ struct json_snapshot_suite {

static std::string temp_file() {
static fc::temp_directory temp_dir;
std::string temp_file = temp_dir.path().string() + "temp.bin.json";
return temp_file;
auto temp_file = temp_dir.path() / "temp.bin.json";
return temp_file.string();
}

struct reader : public reader_t {
Expand Down

0 comments on commit 636c0f5

Please sign in to comment.