diff options
author | UbitUmarov | 2018-07-06 02:23:06 +0100 |
---|---|---|
committer | UbitUmarov | 2018-07-06 02:23:06 +0100 |
commit | 8ac69a5d276e4c8c2ea550402fc6e67376784fe1 (patch) | |
tree | 421c9a94430b1ac1d1d450aa88d2ee101ca0ad80 | |
parent | fix version string size test (diff) | |
download | opensim-SC-8ac69a5d276e4c8c2ea550402fc6e67376784fe1.zip opensim-SC-8ac69a5d276e4c8c2ea550402fc6e67376784fe1.tar.gz opensim-SC-8ac69a5d276e4c8c2ea550402fc6e67376784fe1.tar.bz2 opensim-SC-8ac69a5d276e4c8c2ea550402fc6e67376784fe1.tar.xz |
just remove the test instead
-rw-r--r-- | OpenSim/Framework/Servers/Tests/VersionInfoTests.cs | 9 | ||||
-rw-r--r-- | OpenSim/Framework/VersionInfo.cs | 2 |
2 files changed, 1 insertions, 10 deletions
diff --git a/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs b/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs index 480f2bb..68a1c78 100644 --- a/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs +++ b/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs | |||
@@ -41,14 +41,5 @@ namespace OpenSim.Framework.Servers.Tests | |||
41 | { | 41 | { |
42 | Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars."); | 42 | Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars."); |
43 | } | 43 | } |
44 | |||
45 | [Test] | ||
46 | public void TestGetVersionStringLength() | ||
47 | { | ||
48 | foreach (VersionInfo.Flavour flavour in Enum.GetValues(typeof(VersionInfo.Flavour))) | ||
49 | { | ||
50 | Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.GetVersionString("0.0.0", flavour).Length, "0.0.0/" + flavour + " failed"); | ||
51 | } | ||
52 | } | ||
53 | } | 44 | } |
54 | } | 45 | } |
diff --git a/OpenSim/Framework/VersionInfo.cs b/OpenSim/Framework/VersionInfo.cs index e8e746b..eac5aae 100644 --- a/OpenSim/Framework/VersionInfo.cs +++ b/OpenSim/Framework/VersionInfo.cs | |||
@@ -57,7 +57,7 @@ namespace OpenSim | |||
57 | return versionString.PadRight(VERSIONINFO_VERSION_LENGTH); | 57 | return versionString.PadRight(VERSIONINFO_VERSION_LENGTH); |
58 | } | 58 | } |
59 | 59 | ||
60 | public const int VERSIONINFO_VERSION_LENGTH = 30; | 60 | public const int VERSIONINFO_VERSION_LENGTH = 27; |
61 | 61 | ||
62 | /// <value> | 62 | /// <value> |
63 | /// This is the external interface version. It is separate from the OpenSimulator project version. | 63 | /// This is the external interface version. It is separate from the OpenSimulator project version. |