This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

#5657 Fix SerialKey expiring unit test

  • Loading branch information...
nlyan committed Oct 17, 2016
1 parent 7eefa49 commit b5a6ae0a944020d0ffe537f711ab83c8aeecf837
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/test/unittests/shared/SerialKeyTests.cpp
@@ -1,11 +1,11 @@
/*
* synergy -- mouse and keyboard sharing utility
* Copyright (C) 2016 Symless Inc.
- *
+ *
* This package is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* found in the file LICENSE that should have accompanied this file.
- *
+ *
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -129,10 +129,10 @@ TEST(SerialKeyTests, isValid_expiredV2TrialProSerial_invalid)
TEST(SerialKeyTests, isExpiring_validV2TrialBasicSerial_returnFalse)
{
- // {v2;trial;basic;Bob;1;email;company name;0;86400}
- SerialKey serial("7B76323B747269616C3B62617369633B426F623B313B656D61696C3B636F6D70616E79206E616D653B303B38363430307D");
+ // {v2;trial;basic;Bob;1;email;company name;1;86400}
+ SerialKey serial("7B76323B747269616C3B62617369633B426F623B313B656D61696C3B636F6D70616E79206E616D653B313B38363430307D");
EXPECT_EQ(true, serial.isTrial());
- EXPECT_TRUE(serial.isExpiring(0));
+ EXPECT_FALSE(serial.isExpiring(0));
EXPECT_EQ(kBasic, serial.edition());
}

0 comments on commit b5a6ae0

Please sign in to comment.