VOL-4075: Bugfix for TestRequest MsgLayer type being set incorrectly during message layer decode.

Change-Id: Ie6c785502913d140bdb1d774ace147d15ca592d2

VOL-4075: Bugfix for TestRequest MsgLayer type being set incorrectly during message layer decode.

Change-Id: If70d40c8eee75bf04a9f1e4636a581781571379f
diff --git a/VERSION b/VERSION
index 26aaba0..6085e94 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.2.0
+1.2.1
diff --git a/messagetypes.go b/messagetypes.go
index 94fc257..dd908b6 100644
--- a/messagetypes.go
+++ b/messagetypes.go
@@ -1950,13 +1950,13 @@
 	switch me.ClassID(classID) {
 	default:
 		omci := &TestRequest{}
-		omci.MsgLayerType = LayerTypeTestResult
+		omci.MsgLayerType = LayerTypeTestRequest
 		return decodingLayerDecoder(omci, data, p)
 
 	case me.AniGClassID, me.ReAniGClassID, me.PhysicalPathTerminationPointReUniClassID,
 		me.ReUpstreamAmplifierClassID, me.ReDownstreamAmplifierClassID:
 		omci := &OpticalLineSupervisionTestRequest{}
-		omci.MsgLayerType = LayerTypeTestResult
+		omci.MsgLayerType = LayerTypeTestRequest
 		return decodingLayerDecoder(omci, data, p)
 	}
 }
diff --git a/messagetypes_test.go b/messagetypes_test.go
index 23e020c..399fc34 100644
--- a/messagetypes_test.go
+++ b/messagetypes_test.go
@@ -3852,7 +3852,7 @@
 	assert.Equal(t, BaselineIdent, omciMsg.DeviceIdentifier)
 	assert.Equal(t, uint16(40), omciMsg.Length)
 
-	msgLayer := packet.Layer(LayerTypeTestResult)
+	msgLayer := packet.Layer(LayerTypeTestRequest)
 	assert.NotNil(t, msgLayer)
 
 	// This is a generic struct since we do not do detailed decode
@@ -3900,7 +3900,7 @@
 	assert.Equal(t, BaselineIdent, omciMsg.DeviceIdentifier)
 	assert.Equal(t, uint16(40), omciMsg.Length)
 
-	msgLayer := packet.Layer(LayerTypeTestResult)
+	msgLayer := packet.Layer(LayerTypeTestRequest)
 	assert.NotNil(t, msgLayer)
 
 	// This is a optical line test results