From 009740f304c084673c01326e00173187f2320787 Mon Sep 17 00:00:00 2001 From: Quan Tian Date: Fri, 1 Nov 2024 16:28:59 +0800 Subject: [PATCH] Update VERSION to v0.15.1 (#63) Also fixed an uncommon unit test package name. Signed-off-by: Quan Tian --- VERSION | 2 +- openflow15/match_test.go | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/VERSION b/VERSION index 86dd09a..5f1dd0a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.15.0 +v0.15.1 diff --git a/openflow15/match_test.go b/openflow15/match_test.go index 25bbe4d..e43c4e6 100644 --- a/openflow15/match_test.go +++ b/openflow15/match_test.go @@ -1,24 +1,22 @@ -package openflow15_test +package openflow15 import ( "bytes" "fmt" "net" "testing" - - "antrea.io/libOpenflow/openflow15" ) func TestMatchEthAddresses(t *testing.T) { ethSrcAddress, _ := net.ParseMAC("aa:aa:aa:aa:aa:aa") ethDstAddress, _ := net.ParseMAC("ff:ff:ff:ff:ff:ff") - ofMatch := openflow15.NewMatch() + ofMatch := NewMatch() { - macSrcField := openflow15.NewEthSrcField(ethSrcAddress, nil) + macSrcField := NewEthSrcField(ethSrcAddress, nil) ofMatch.AddField(*macSrcField) - macDstField := openflow15.NewEthDstField(ethDstAddress, nil) + macDstField := NewEthDstField(ethDstAddress, nil) ofMatch.AddField(*macDstField) } @@ -27,7 +25,7 @@ func TestMatchEthAddresses(t *testing.T) { } } -func checkMatchSerializationConsistency(ofMatch *openflow15.Match) error { +func checkMatchSerializationConsistency(ofMatch *Match) error { // Serialize the original match ofMatchRaw, err := ofMatch.MarshalBinary() if err != nil { @@ -35,7 +33,7 @@ func checkMatchSerializationConsistency(ofMatch *openflow15.Match) error { } // Deserialize into a new match object - ofMatchRecovered := openflow15.NewMatch() + ofMatchRecovered := NewMatch() if err := ofMatchRecovered.UnmarshalBinary(ofMatchRaw); err != nil { return fmt.Errorf("failed to unmarshal match: %w", err) }